MentaTutorials

Rev

Rev 11 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11 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.hellomenta.AppManager</param-value>
20
                </init-param>
21
                <load-on-startup>1</load-on-startup>
22
        </servlet>
23
 
24
        <!-- You must choose an extension to indicate a mentawai action -->
25
        <servlet-mapping>
26
                <servlet-name>Controller</servlet-name>
27
                <url-pattern>*.mtw</url-pattern>
28
        </servlet-mapping>
29
 
14 soliveira 30
        <!-- filter>
11 soliveira 31
                <filter-name>SetCharacterEncoding</filter-name>
32
                <filter-class>org.mentawai.util.SetCharacterEncodingFilter</filter-class>
33
        <init-param>
34
                <param-name>encoding</param-name>
35
            <param-value>UTF-8</param-value>
36
        </init-param>
37
        </filter>
38
 
39
        <filter-mapping>
40
        <filter-name>SetCharacterEncoding</filter-name>
41
        <url-pattern>/*</url-pattern>
14 soliveira 42
        </filter-mapping -->
11 soliveira 43
 
44
</web-app>