112 lines
3.1 KiB
XML
Executable File
112 lines
3.1 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
|
id="WebApp_ID" version="3.0">
|
|
|
|
<description>Web PrimeFaces</description>
|
|
|
|
<display-name>web-primefaces</display-name>
|
|
|
|
<filter>
|
|
<description>Manejo del timeout de session</description>
|
|
<filter-name>TimeoutManagerFilter</filter-name>
|
|
<filter-class>com.fp.frontend.filter.TimeoutManagerFilter</filter-class>
|
|
</filter>
|
|
|
|
<filter>
|
|
<description>Servlet que se encarga de enviar la informacion comprimida</description>
|
|
<filter-name>Compresion</filter-name>
|
|
<filter-class>com.fp.frontend.filter.GZIPFilter</filter-class>
|
|
</filter>
|
|
|
|
<filter>
|
|
<filter-name>PrimeFaces FileUpload Filter</filter-name>
|
|
<filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
|
|
</filter>
|
|
|
|
<filter-mapping>
|
|
<filter-name>PrimeFaces FileUpload Filter</filter-name>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>TimeoutManagerFilter</filter-name>
|
|
<url-pattern>/*</url-pattern>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>Compresion</filter-name>
|
|
<url-pattern>*.jsp</url-pattern>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>Compresion</filter-name>
|
|
<url-pattern>*.jsf</url-pattern>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>Compresion</filter-name>
|
|
<url-pattern>*.html</url-pattern>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>Compresion</filter-name>
|
|
<url-pattern>*.xhtml</url-pattern>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>Compresion</filter-name>
|
|
<url-pattern>*.js</url-pattern>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>Compresion</filter-name>
|
|
<url-pattern>*.css</url-pattern>
|
|
</filter-mapping>
|
|
|
|
|
|
<!-- Project Stage Level -->
|
|
<context-param>
|
|
<param-name>javax.faces.PROJECT_STAGE</param-name>
|
|
<param-value>Production</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>primefaces.THEME</param-name>
|
|
<param-value>maia-theme</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
|
|
<param-value>true</param-value>
|
|
</context-param>
|
|
|
|
<servlet>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
|
<load-on-startup>1</load-on-startup>
|
|
</servlet>
|
|
|
|
<servlet-mapping>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
<url-pattern>*.xhtml</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
<servlet-mapping>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
<url-pattern>*.faces</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
|
|
<welcome-file-list>
|
|
<welcome-file>index.xhtml</welcome-file>
|
|
</welcome-file-list>
|
|
|
|
<error-page>
|
|
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
|
|
<location>/login.xhtml</location>
|
|
</error-page>
|
|
|
|
<session-config>
|
|
<session-timeout>60</session-timeout>
|
|
</session-config>
|
|
</web-app> |