<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation
="http://java.sun.com/xml/ns/j2ee 
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
>
 
    
<context-param>
        
<param-name>contextConfigLocation</param-name>
        
<param-value>/WEB-INF/TMVC-servlet.xml</param-value>
    
</context-param>
 
<!-- 
    <listener>
        <listener-class>
            org.springframework.web.context.ContextLoaderListener
        </listener-class>
    </listener>
 
-->
    
<servlet>
        
<servlet-name>TMVC</servlet-name>
        
<servlet-class>
            org.springframework.web.servlet.DispatcherServlet
        
</servlet-class>
        
<load-on-startup>1</load-on-startup>
    
</servlet>
    
<!-- 
    <filter>
        <filter-name>encodingFilter</filter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>encodingFilter</filter-name>
        <url-pattern>*.xzl</url-pattern>
    </filter-mapping>
     
-->
<!-- must -->
    
<servlet-mapping>
        
<servlet-name>TMVC</servlet-name>
        
<url-pattern>*.xzl</url-pattern>
    
</servlet-mapping>

    
<welcome-file-list>
        
<welcome-file>/hello.jsp</welcome-file>
    
</welcome-file-list>
</web-app>


ExtJS教程- Hibernate教程-Struts2 教程-Lucene教程