1.<?xml version="1.0" encoding="UTF-8"?>
2.<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
5.
6. <!-- Spring的应用上下文 -->
7. <context-param>
8. <param-name>contextConfigLocation</param-name>
9. <param-value>classpath:/applicationContext*.xml</param-value>
10. </context-param>
11.
12. <!-- Struts2过滤器 -->
13. <filter>
14. <filter-name>struts2</filter-name>
15. <filter-class>
16. org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
17. </filter>
18. <filter-mapping>
19. <filter-name>struts2</filter-name>
20. <url-pattern>/*</url-pattern>
21. </filter-mapping>
22.
23. <!-- 字符编码过滤器 -->
24. <filter>
25. <filter-name>encodingFilter</filter-name>
26. <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
27. <init-param>
28. <param-name>encoding</param-name>
29. <param-value>UTF-8</param-value>
30. </init-param>
31. <init-param>
32. <param-name>forceEncoding</param-name>
33. <param-value>true</param-value>
34. </init-param>
35. </filter>
36. <filter-mapping>
37. <filter-name>encodingFilter</filter-name>
38. <url-pattern>/*</url-pattern>
39. </filter-mapping>
40.
41. <!-- OpenSessionInView过滤器 -->
42. <filter>
43. <filter-name>openSessionInViewFilter</filter-name>
44. <filter-class>
45. org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
46. </filter-class>
47. </filter>
48. <filter-mapping>
49. <filter-name>openSessionInViewFilter</filter-name>
50. <url-pattern>/*</url-pattern>
51. </filter-mapping>
52.
53. <!--Spring的ApplicationContext 载入 -->
54. <listener>
55. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
56. </listener>
57.
58. <!-- Spring 刷新Introspector防止内存泄露 -->
59. <listener>
60. <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
61. </listener>
62.
63. <!-- session超时定义,单位为分钟 -->
64. <session-config>
65. <session-timeout>20</session-timeout>
66. </session-config>
67.
68. <!-- 欢迎文件列表 -->
69. <welcome-file-list>
70. <welcome-file>index.html</welcome-file>
71. </welcome-file-list>
72.
73. <!-- 出错页面定义 -->
74. <error-page>
75. <exception-type>java.lang.Throwable</exception-type>
76. <location>/common/500.jsp</location>
77. </error-page>
78. <error-page>
79. <error-code>500</error-code>
80. <location>/common/500.jsp</location>
81. </error-page>
82. <error-page>
83. <error-code>404</error-code>
84. <location>/common/404.jsp</location>
85. </error-page>
86. <error-page>
87. <error-code>403</error-code>
88. <location>/common/403.jsp</location>
89. </error-page>
90.</web-app>
分享到:
相关推荐
Struts2.0.14+Spring2.5+Hibernate3.2+Oracle10g+Tomcat6.0开发环境配置,有步骤图示 +web.xml+applicationContext.xml文件配置 还算齐全。。。
S2SH整合S2SH整合S2SH整合S2SH整合S2SH整合S2SH整合S2SH整合
Struts2.1、Spring3.0、Hibernate3.3整合与S2SH的XML文件拆分 很不错的整合实例 包括了s2sh框架的xml拆分
s2sh整合步骤及配置文件配置s2sh整合步骤及配置文件配置s2sh整合步骤及配置文件配置s2sh整合步骤及配置文件配置
S2SH整合后的相关完整配置文件,beans.xml,struts.xml,log4j.properties以及web.xml
软件平台\软件实例\S2SH_jar.软件平台\软件实例\S2SH_jar.软件平台\软件实例\S2SH_jar.
包含了s2sh 整合所用的所有jar包,适合eclipse中导入实用。
输入底包,再刷web包。GOCLOUD-S2A-4.3.0.17357未精简魔改开启NAT1.bin.web
S2SH+jxl.jar实现导出Excel文档
基于Annotation的s2sh整合配置实现分页功能基于Annotation的s2sh整合配置实现分页功能基于Annotation的s2sh整合配置实现分页功能基于Annotation的s2sh整合配置实现分页功能基于Annotation的s2sh整合配置实现分页功能
S2SH 整合框架,实现CURD,供新手学习。
s2sh整合的完整代码,希望大家喜欢。里面包含了一些基本的有用的东西
很详细的S2SH配置,struts2 2.1.8 hibernate3.0 spring2.5 整合配置 详细代码 学习啦
本文讲的是一个S2SH框架的的人力资源管理小系统,包含最基本的增删改查(CRUD)功能,非常适合S2SH框架的初学者学习。
s2sh整合配置文档基于jpa
纯s2sh框架,作为新人自己做的.希望可以帮助到其他新人,勿喷.
简单的S2SH开发小项目的流程,里面包括了web.xml,applicationContext.xml,以及struts.xml的配置详细,希望对学习web的初学者有帮助
这个是s2sh开发所用的完整包,是从s2sh项目中的lib直接解压出来的,下载之后可以直接导入就可以用
s2sh整合 所需其他jar包 打包下载 spring-dao.jar mysql-connector-java-5.1.6-bin.jar commons-dbcp.jar cglib-nodep.jar
s2sh整合annotation s2sh整合annotation s2sh整合annotation s2sh整合annotation s2sh整合annotation