Kawai Wiki

Rev

Rev 206 | Rev 210 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 soliveira 1
<?xml version="1.0" encoding="UTF-8"?>
2
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
        xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
4
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
5
        id="WebApp_ID" version="2.5">
6
 
7
        <!-- Override default start page -->
8
        <welcome-file-list>
4 soliveira 9
                <welcome-file>index.jsp</welcome-file>
1 soliveira 10
        </welcome-file-list>
11
 
12
 
13
        <!-- The Mentawai controller -->
14
        <servlet>
15
                <servlet-name>Controller</servlet-name>
206 soliveira 16
                <servlet-class>org.mentawai.core.PrettyURLController</servlet-class>
1 soliveira 17
                <init-param>
18
                        <param-name>applicationManager</param-name>
4 soliveira 19
                        <param-value>org.kawai.AppManager</param-value>
1 soliveira 20
                </init-param>
21
                <load-on-startup>1</load-on-startup>
22
        </servlet>
23
 
24
        <!-- Listener to grag context path at startup -->
25
        <listener>
26
                <listener-class>org.mentawai.core.ContextPathGrabber</listener-class>
27
        </listener>
28
 
29
        <!-- You must choose an extension to indicate a mentawai action -->
30
        <servlet-mapping>
31
                <servlet-name>Controller</servlet-name>
32
                <url-pattern>*.mtw</url-pattern>
206 soliveira 33
                <url-pattern>/mtw/*</url-pattern>
1 soliveira 34
        </servlet-mapping>
31 soliveira 35
 
129 soliveira 36
        <!-- filter>
1 soliveira 37
                <filter-name>DebugFilter</filter-name>
38
                <filter-class>org.mentawai.util.DebugServletFilter</filter-class>
39
        </filter>
40
 
41
        <filter-mapping>
42
                <filter-name>DebugFilter</filter-name>
43
                <url-pattern>*.jsp</url-pattern>
44
                <dispatcher>REQUEST</dispatcher>
45
                <dispatcher>FORWARD</dispatcher>
46
                <dispatcher>INCLUDE</dispatcher>
47
                <dispatcher>ERROR</dispatcher>
129 soliveira 48
        </filter-mapping -->
1 soliveira 49
 
209 soliveira 50
        <filter>
51
                <filter-name>SetCharacterEncoding</filter-name>
52
                <filter-class>org.mentawai.util.SetCharacterEncodingFilter</filter-class>
53
        <init-param>
54
                <param-name>encoding</param-name>
55
            <param-value>UTF-8</param-value>
56
        </init-param>
57
        </filter>
58
 
59
        <filter-mapping>
60
        <filter-name>SetCharacterEncoding</filter-name>
61
        <url-pattern>/*</url-pattern>
62
        </filter-mapping>
63
 
1 soliveira 64
        <session-config>
203 soliveira 65
                <session-timeout>300</session-timeout>
1 soliveira 66
        </session-config>
67
 
68
</web-app>