<?xml version = '1.0' encoding = 'windows-1256'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
    <description>Empty web.xml file for Web Application</description>
    <context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>/WEB-INF/eps-faces-config.xml</param-value>
    </context-param>
    
    <!-- /WEB-INF/applicationContext.xml         
         -->
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:applicationContext.xml,
                     classpath:applicationContext-localDataSource.xml,
                     classpath:applicationContext-acegiSecurity.xml
        </param-value>
    </context-param>
    
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
        <description>
            State saving method: "client" or "server" (= default)
            See JSF Specification 2.5.2
        </description>
    </context-param>
    
    <context-param>
        <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
        <param-value>true</param-value>
        <description>
            This parameter tells MyFaces if javascript code should be allowed in the
            rendered HTML output.
            If javascript is allowed, command_link anchors will have javascript code
            that submits the corresponding form.
            If javascript is not allowed, the state saving info and nested parameters
            will be added as url parameters.
            Default: "true"
        </description>
    </context-param>
    
    <context-param>
        <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
        <param-value>false</param-value>
    </context-param>
    
    <context-param>
        <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
        <param-value>true</param-value>
        <description>
            If true, rendered HTML code will be formatted, so that it is "human readable".
            i.e. additional line separators and whitespace will be written, that do not
            influence the HTML code.
            Default: "true"
        </description>
    </context-param>
    
    <context-param>
        <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
        <param-value>false</param-value>
        <description>
            If true, a javascript function will be rendered that is able to restore the
            former vertical scroll on every request. Convenient feature if you have pages
            with long lists and you do not want the browser page to always jump to the top
            if you trigger a link or button action that stays on the same page.
            Default: "false"
        </description>
    </context-param>
    
    <filter>
        <filter-name>Acegi Filter Chain Proxy</filter-name>
        <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
        <init-param>
            <param-name>targetClass</param-name>
            <param-value>org.acegisecurity.util.FilterChainProxy</param-value>
        </init-param>
    </filter>
    
    <filter-mapping>
        <filter-name>Acegi Filter Chain Proxy</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <!--filter>
        <filter-name>Acegi CAS Processing Filter</filter-name>
        <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
        <init-param>
            <param-name>targetClass</param-name>
            <param-value>org.acegisecurity.ui.cas.CasProcessingFilter</param-value>
        </init-param>
    </filter>
    
    <filter-mapping>
        <filter-name>Acegi CAS Processing Filter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping-->

    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <!---filter>
      <filter-name>sessionFilter</filter-name>
      <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
    </filter>
            
    <filter-mapping>
      <filter-name>sessionFilter</filter-name>
      <url-pattern>*.jsf</url-pattern>
    </filter-mapping-->
      
    <!--listener>
        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener-->
    
    <!-- Faces Servlet -->
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup> 1 </load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>tiles</servlet-name>
        <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
        <init-param>
            <param-name>definitions-config</param-name>
            <param-value>/WEB-INF/tiles-defs.xml</param-value>
        </init-param>
        <init-param>
            <param-name>definitions-parser-validate</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>    
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    
    <!--servlet>
        <servlet-name>casproxy</servlet-name>
        <servlet-class>edu.yale.its.tp.cas.proxy.ProxyTicketReceptor</servlet-class>
    </servlet>
    
    <servlet-mapping>
        <servlet-name>casproxy</servlet-name>
        <url-pattern>/casProxy/*</url-pattern>
    </servlet-mapping-->
    
    <session-config>
        <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
    </mime-mapping>
    <taglib>
        <taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
        <taglib-location>/WEB-INF/html_basic.tld</taglib-location>
    </taglib>
    <taglib>
        <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
        <taglib-location>/WEB-INF/jsf_core.tld</taglib-location>
    </taglib>
    <taglib>
        <taglib-uri>http://jakarta.apache.org/struts/tags-tiles</taglib-uri>
        <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>
    <taglib>
        <taglib-uri>http://isoftfaces.ae/isoftpicklist</taglib-uri>
        <taglib-location>/WEB-INF/picklist.tld</taglib-location>
    </taglib>
    
    <taglib>
        <taglib-uri>http://isoft.ae/messagecomponent</taglib-uri>
        <taglib-location>/WEB-INF/message.tld</taglib-location>
    </taglib>
    <!-- Start of Extension Filter Part -->
    
    <!-- Extensions Filter -->
    <filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
        <init-param>
            <param-name>uploadMaxFileSize</param-name>
            <param-value>100m</param-value>
            <description>Set the size limit for uploaded files.
                Format: 10 - 10 bytes
                10k - 10 KB
                10m - 10 MB
                1g - 1 GB
            </description>
        </init-param>
        <init-param>
            <param-name>uploadThresholdSize</param-name>
            <param-value>100k</param-value>
            <description>Set the threshold size - files
                below this limit are stored in memory, files above
                this limit are stored on disk.

                Format: 10 - 10 bytes
                10k - 10 KB
                10m - 10 MB
                1g - 1 GB
            </description>
        </init-param>
    </filter>
    
    <filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    
    <!-- End of Extension Filter Part -->
    
    <!-- Start Application Filter -->
    <!--filter>
        <filter-name>ApplicationFilter</filter-name>
        <filter-class>ae.dxbpolice.eps.web.shared.ApplicationFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>ApplicationFilter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping-->
    <!-- End Application Filter -->
    
    <!--  Handle Error Codes (System Exceptions, 500, 404, 505,...) -->
    <!--servlet>
        <servlet-name>ErrorServlet</servlet-name>
        <servlet-class>ae.dxbpolice.eps.web.shared.ErrorHandlingServlet</servlet-class>
        <init-param>
            <param-name>errorPage</param-name>
            <param-value>/errorpage.jsf</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    
    <servlet-mapping>
        <servlet-name>ErrorServlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    
    <error-page>
        <error-code>404</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>500</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>400</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>401</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>403</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>405</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>406</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>407</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>408</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>409</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>410</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>411</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>412</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>413</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>414</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>415</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>416</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>417</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>501</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>502</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>503</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>504</error-code>
        <location>*.jsf</location>
    </error-page>
    <error-page>
        <error-code>505</error-code>
        <location>*.jsf</location>
    </error-page-->
    <!--  End Of Handle Error Codes (System Exceptions, 500, 404, 505,...) 
    --> 
    
    <!--  Start Welcome Files -->
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <!--  End Welcome Files -->
 
</web-app>

