首页 > 代码库 > web
web
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:log4j.properties</param-value>
</context-param>
<context-param>
<param-name>log4jRefreshInterval</param-name>
<param-value>60000</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-*.xml</param-value>
</context-param>
<!-- log4j初始化 -->
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<!-- spring初始化 -->
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<!-- CASFILTER PLACEHOLDER,DO NOT DELETE -->
<!-- cas过滤器begin
<filter>
<filter-name>CasLoginFilter</filter-name>
<filter-class>
com.huawei.servcomplain.common.filter.CasLoginFilter
</filter-class>
<init-param>
<param-name>casServer</param-name>
<param-value>http://10.41.20.209:2082/cas</param-value>
</init-param>
<init-param>
<param-name>validateErrorRedirectUrl</param-name>
<param-value>http://192.168.210.119:38180/BICP</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CasLoginFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> -->
<!-- cas过滤器end -->
<!-- 编码过滤器begin -->
<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>
<!-- 编码过滤器end -->
<!-- 系统控制转发中心begin -->
<filter>
<filter-name>sc</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>sc</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- 系统控制转发中心end -->
<jsp-config>
<taglib>
<taglib-uri>/sc</taglib-uri>
<taglib-location>/WEB-INF/sc.tld</taglib-location>
</taglib>
</jsp-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/error/403.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/jsp/error/404.jsp</location>
</error-page>
<error-page>
<exception-type>
com.huawei.servcomplain.common.exception.BizException
</exception-type>
<location>/WEB-INF/jsp/error/bizError.jsp</location>
</error-page>
<error-page>
<exception-type>
com.huawei.servcomplain.common.exception.AuthorityException
</exception-type>
<location>/WEB-INF/jsp/error/noAuthority.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/WEB-INF/jsp/error/500.jsp</location>
</error-page>
</web-app>