Kawai Wiki

Rev

Rev 209 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?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_2_5.xsd"
        id="WebApp_ID" version="2.5">

        <!-- Override default start page -->
        <welcome-file-list>
                <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>


        <!-- The Mentawai controller -->
        <servlet>
                <servlet-name>Controller</servlet-name>
                <servlet-class>org.mentawai.core.Controller</servlet-class>
                <init-param>
                        <param-name>applicationManager</param-name>
                        <param-value>org.kawai.AppManager</param-value>
                </init-param>
                <load-on-startup>1</load-on-startup>
        </servlet>

        <!-- Listener to grag context path at startup -->
        <listener>
                <listener-class>org.mentawai.core.ContextPathGrabber</listener-class>
        </listener>

        <!-- You must choose an extension to indicate a mentawai action -->
        <servlet-mapping>
                <servlet-name>Controller</servlet-name>
                <url-pattern>*.mtw</url-pattern>
                <url-pattern>/mtw/*</url-pattern>
        </servlet-mapping>
       
        <!-- filter>
                <filter-name>DebugFilter</filter-name>
                <filter-class>org.mentawai.util.DebugServletFilter</filter-class>
        </filter>

        <filter-mapping>
                <filter-name>DebugFilter</filter-name>
                <url-pattern>*.jsp</url-pattern>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>FORWARD</dispatcher>
                <dispatcher>INCLUDE</dispatcher>
                <dispatcher>ERROR</dispatcher>
        </filter-mapping -->

        <filter>
                <filter-name>SetCharacterEncoding</filter-name>
                <filter-class>org.mentawai.util.SetCharacterEncodingFilter</filter-class>
        <init-param>
                <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
        </filter>

        <filter-mapping>
        <filter-name>SetCharacterEncoding</filter-name>
        <url-pattern>/*</url-pattern>
        </filter-mapping>

        <session-config>
                <session-timeout>300</session-timeout>
        </session-config>

</web-app>