Kawai Wiki

Rev

Rev 4 | Go to most recent revision | Details | 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>
9
                <welcome-file>/jsp/index.jsp</welcome-file>
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>
19
                        <param-value>org.menta.AppManager</param-value>
20
                        <!-- param-value>org.menta.HibernateAppManager</param-value -->
21
                </init-param>
22
                <load-on-startup>1</load-on-startup>
23
        </servlet>
24
 
25
        <!-- Listener to grag context path at startup -->
26
        <listener>
27
                <listener-class>org.mentawai.core.ContextPathGrabber</listener-class>
28
        </listener>
29
 
30
        <!-- You must choose an extension to indicate a mentawai action -->
31
        <servlet-mapping>
32
                <servlet-name>Controller</servlet-name>
33
                <url-pattern>*.mtw</url-pattern>
34
        </servlet-mapping>
35
 
36
        <filter>
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>
48
        </filter-mapping>
49
 
50
        <session-config>
51
                <session-timeout>10</session-timeout>
52
        </session-config>
53
 
54
</web-app>