web.xml 2.06 KB
<?xml version="1.0" encoding="gb2312"?>

<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">

	<display-name>diligrp Manager Web App</display-name>

	<listener>
		<listener-class>com.dili.dd.monitor.MonitorListener</listener-class>
	</listener>
	<context-param>
		<param-name>application</param-name>
		<param-value>18d16bbe369f489380655b5bd2150ac1</param-value>
	</context-param>

	<servlet>
		<servlet-name>dispatcherServlet</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
		<init-param>
			<param-name>contextConfigLocation</param-name>
			<param-value>classpath:spring.xml</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>dispatcherServlet</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>

	<filter>
		<filter-name>characterEncodingFilter</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>
		<init-param>
			<param-name>forceEncoding</param-name>
			<param-value>true</param-value>
		</init-param>
	</filter>

	<filter-mapping>
		<filter-name>characterEncodingFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	
	<!--ȨÏÞÀ¹½ØÅäÖÃ--> 
    <filter> 
        <filter-name>sessionFilter</filter-name> 
        <filter-class>com.diligrp.manage.sdk.session.SessionFilter</filter-class> 
    </filter> 
    <filter-mapping> 
        <filter-name>sessionFilter</filter-name> 
        <url-pattern>*</url-pattern> 
    </filter-mapping>

	<welcome-file-list>
		<welcome-file>/index.html</welcome-file>
	</welcome-file-list>
	
	<error-page>
		<error-code>500</error-code>
		<location>/error500.do</location>
	</error-page>
	
	<error-page>
		<error-code>404</error-code>
		<location>/error404.do</location>
	</error-page>

</web-app>