Kawai Wiki

Rev

Rev 31 | Rev 129 | 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>
16
                <servlet-class>org.mentawai.core.Controller</servlet-class>
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>
33
        </servlet-mapping>
31 soliveira 34
 
1 soliveira 35
        <filter>
36
                <filter-name>DebugFilter</filter-name>
37
                <filter-class>org.mentawai.util.DebugServletFilter</filter-class>
38
        </filter>
39
 
40
        <filter-mapping>
41
                <filter-name>DebugFilter</filter-name>
42
                <url-pattern>*.jsp</url-pattern>
43
                <dispatcher>REQUEST</dispatcher>
44
                <dispatcher>FORWARD</dispatcher>
45
                <dispatcher>INCLUDE</dispatcher>
46
                <dispatcher>ERROR</dispatcher>
47
        </filter-mapping>
48
 
49
        <session-config>
50
                <session-timeout>10</session-timeout>
51
        </session-config>
52
 
53
</web-app>