SSH 和 SSI 等框架常用基础配置 web.xml
http://blog.sina.com.cn/s/blog_a072b6c401012lnn.html
<?xmlversion="1.0"encoding="UTF-8"?>
<web-appid="WebApp_ID"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>myproj</display-name>
<!--
初始化
xml
配置,配置了之后
spring
的
ContextLoaderListener
会在
classpath
中读取,默认的为
WEB-INF/applicationContext.xml -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:/config/framework/*.xml,
classpath*:/config/app/*.xml
</param-value>
</context-param>
<!--
编码配置
-->
<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>
<!--struts
配置
-->
<filter>