SSH2web配置文件解说

ss2h框架的搭建原理
web.xml文件中需要配置的信息有:
1.防止乱码的过滤器

encodingFilter

org.springframework.web.filter.CharacterEncodingFilter


encoding
gbk




encodingFilter
/*

2.配置struts2过滤器

struts2
// StrutsDispatch
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter



struts2
*.action

3.配置一个监听器将请求转发给 Spring框架


org.springframework.web.context.ContextLoaderListener



4.配置一个参数,告诉容器,spring配置文建的位置

contextConfigLoaction
classpath:application*.xml

5.配置一个servlet用作dwr的只使用

dwr
org.directwebremoting.servlet.DwrServlet


config-dwr
WEB-INF/dww.xml


dwr
/dwr/*

相关文档
最新文档