MentaTutorials

Rev

Rev 11 | 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>/jsp/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.hellomenta.AppManager</param-value>
                </init-param>
                <load-on-startup>1</load-on-startup>
        </servlet>

        <!-- You must choose an extension to indicate a mentawai action -->
        <servlet-mapping>
                <servlet-name>Controller</servlet-name>
                <url-pattern>*.mtw</url-pattern>
        </servlet-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 -->

</web-app>