source: tol/TolJava/WebTOLJavaDEMO/web/WEB-INF/web.xml @ 9887b93

1941-docker-image-to-testdevel
Last change on this file since 9887b93 was 9887b93, checked in by Humberto Carralero <hacarralero@…>, 15 years ago

Importing TolJava

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3900 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 4.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
3    <context-param>
4        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
5        <param-value>client</param-value>
6    </context-param>
7    <context-param>
8        <param-name>com.sun.faces.validateXml</param-name>
9        <param-value>true</param-value>
10    </context-param>
11    <context-param>
12        <param-name>com.sun.faces.verifyObjects</param-name>
13        <param-value>false</param-value>
14    </context-param>
15    <filter>
16        <filter-name>UploadFilter</filter-name>
17        <filter-class>com.sun.webui.jsf.util.UploadFilter</filter-class>
18        <init-param>
19            <description>The maximum allowed upload size in bytes.  If this is set to a negative value, there is no maximum.  The default value is 1000000.</description>
20            <param-name>maxSize</param-name>
21            <param-value>1000000</param-value>
22        </init-param>
23        <init-param>
24            <description>The size (in bytes) of an uploaded file which, if it is exceeded, will cause the file to be written directly to disk instead of stored in memory.  Files smaller than or equal to this size will be stored in memory.  The default value is 4096.</description>
25            <param-name>sizeThreshold</param-name>
26            <param-value>4096</param-value>
27        </init-param>
28    </filter>
29    <filter-mapping>
30        <filter-name>UploadFilter</filter-name>
31        <servlet-name>Faces Servlet</servlet-name>
32    </filter-mapping>
33    <servlet>
34        <servlet-name>Faces Servlet</servlet-name>
35        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
36        <init-param>
37            <param-name>javax.faces.LIFECYCLE_ID</param-name>
38            <param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
39        </init-param>
40        <load-on-startup>1</load-on-startup>
41    </servlet>
42    <servlet>
43        <servlet-name>ExceptionHandlerServlet</servlet-name>
44        <servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>
45        <init-param>
46            <param-name>errorHost</param-name>
47            <param-value>localhost</param-value>
48        </init-param>
49        <init-param>
50            <param-name>errorPort</param-name>
51            <param-value>24444</param-value>
52        </init-param>
53    </servlet>
54    <servlet>
55        <servlet-name>ThemeServlet</servlet-name>
56        <servlet-class>com.sun.webui.theme.ThemeServlet</servlet-class>
57    </servlet>
58    <servlet-mapping>
59        <servlet-name>Faces Servlet</servlet-name>
60        <url-pattern>/faces/*</url-pattern>
61    </servlet-mapping>
62    <servlet-mapping>
63        <servlet-name>ExceptionHandlerServlet</servlet-name>
64        <url-pattern>/error/ExceptionHandler</url-pattern>
65    </servlet-mapping>
66    <servlet-mapping>
67        <servlet-name>ThemeServlet</servlet-name>
68        <url-pattern>/theme/*</url-pattern>
69    </servlet-mapping>
70    <session-config>
71        <session-timeout>
72            30
73        </session-timeout>
74    </session-config>
75    <welcome-file-list>
76        <welcome-file>faces/Inicio.jsp</welcome-file>
77        </welcome-file-list>
78    <error-page>
79        <exception-type>javax.servlet.ServletException</exception-type>
80        <location>/error/ExceptionHandler</location>
81    </error-page>
82    <error-page>
83        <exception-type>java.io.IOException</exception-type>
84        <location>/error/ExceptionHandler</location>
85    </error-page>
86    <error-page>
87        <exception-type>javax.faces.FacesException</exception-type>
88        <location>/error/ExceptionHandler</location>
89    </error-page>
90    <error-page>
91        <exception-type>com.sun.rave.web.ui.appbase.ApplicationException</exception-type>
92        <location>/error/ExceptionHandler</location>
93    </error-page>
94    <jsp-config>
95        <jsp-property-group>
96            <url-pattern>*.jspf</url-pattern>
97            <is-xml>true</is-xml>
98        </jsp-property-group>
99        </jsp-config>
100    </web-app>
Note: See TracBrowser for help on using the repository browser.