1) Removed 'maincss.css' entry from 'allowedPaths' param of from web.xml
Reason: Since, there is no file like 'maincss.css' exist under any includes directory.
2) Removed the unused references of maincss.css from FTLs, code
<link rel="stylesheet" href="${StringUtil.wrapString(baseUrl!)}/images/maincss.css" type="text/css"/>
has been removed.
Reason: This is an interesting thing, these FTLs were using the maincss.css located under the images directory.
When I look the history of these files, following were my findings,
The 'maincss.css' file under the 'images' directory exist in release4.0
http://svn.apache.org/repos/asf/ofbiz/branches/release4.0/framework/images/webapp/images/
after this release, this files no longer exist there.
3) Also, I have updated one file 'InventoryNoticeEmail.ftl' and used the basic HTML code to style, instead of using style defined in 'maincss.css' which were exist in release-4.0
4) Updated some references from 'maincss.css' to style.css in comments.
5) Also removed the entry of including '/images/maincss.css' and '/images/mainrtl.css' in SimpleDecorator
Since, these files no longer exist after release-4.0.
Thanks Wai for reviewing the work and thanks Swapnil M Mane for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758389 13f79535-47bb-0310-9956-ffa450edef68
80 lines
4.0 KiB
XML
80 lines
4.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<web-app version="3.0">
|
|
<display-name>Apache OFBiz - @component-resource-name@ Component</display-name>
|
|
<description>@component-resource-name@ Component of the Apache OFBiz Project</description>
|
|
|
|
<!-- context-param>
|
|
<param-name>webSiteId</param-name>
|
|
<param-value>@component-name@Site</param-value>
|
|
<description>A unique ID used to look up the WebSite entity. Only for component using a WebSite entity, like ecommerce</description>
|
|
</context-param-->
|
|
<context-param>
|
|
<description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description>
|
|
<param-name>localDispatcherName</param-name><param-value>@component-name@</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<description>The Name of the Entity Delegator to use, defined in entityengine.xml</description>
|
|
<param-name>entityDelegatorName</param-name><param-value>default</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description>
|
|
<param-name>mainDecoratorLocation</param-name>
|
|
<param-value>component://@component-name@/widget/CommonScreens.xml</param-value>
|
|
</context-param>
|
|
<!--
|
|
<context-param>
|
|
<param-name>widgetVerbose</param-name>
|
|
<param-value>false</param-value>
|
|
<description>Enable widget boundary comments. See org.apache.ofbiz.widget.model.ModelWidget.widgetBoundaryCommentsEnabled().</description>
|
|
</context-param>
|
|
-->
|
|
<context-param>
|
|
<description>Remove unnecessary whitespace from HTML output.</description>
|
|
<param-name>compressHTML</param-name>
|
|
<param-value>false</param-value>
|
|
</context-param>
|
|
|
|
<filter>
|
|
<display-name>ContextFilter</display-name>
|
|
<filter-name>ContextFilter</filter-name>
|
|
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
|
<init-param><param-name>disableContextSecurity</param-name><param-value>N</param-value></init-param>
|
|
<init-param>
|
|
<param-name>allowedPaths</param-name>
|
|
<param-value>/error:/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images</param-value>
|
|
</init-param>
|
|
<init-param><param-name>errorCode</param-name><param-value>403</param-value></init-param>
|
|
<init-param><param-name>redirectPath</param-name><param-value>/control/main</param-value></init-param>
|
|
</filter>
|
|
<filter-mapping><filter-name>ContextFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping>
|
|
|
|
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
|
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
|
<!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface -->
|
|
<!-- <listener><listener-class>org.apache.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> -->
|
|
|
|
<servlet>
|
|
<description>Main Control Servlet</description>
|
|
<display-name>ControlServlet</display-name>
|
|
<servlet-name>ControlServlet</servlet-name>
|
|
<servlet-class>org.apache.ofbiz.webapp.control.ControlServlet</servlet-class>
|
|
<load-on-startup>1</load-on-startup>
|
|
</servlet>
|
|
<servlet-mapping><servlet-name>ControlServlet</servlet-name><url-pattern>/control/*</url-pattern></servlet-mapping>
|
|
|
|
<session-config>
|
|
<session-timeout>60</session-timeout><!-- in minutes -->
|
|
<cookie-config>
|
|
<http-only>true</http-only>
|
|
<secure>true</secure>
|
|
</cookie-config>
|
|
<tracking-mode>COOKIE</tracking-mode>
|
|
</session-config>
|
|
|
|
<welcome-file-list>
|
|
<welcome-file>index.jsp</welcome-file>
|
|
<welcome-file>index.html</welcome-file>
|
|
<welcome-file>index.htm</welcome-file>
|
|
</welcome-file-list>
|
|
</web-app>
|