web.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="2.5"
  3. xmlns="http://java.sun.com/xml/ns/javaee"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  6. http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  7. <description> system </description>
  8. <context-param>
  9. <param-name>contextConfigLocation</param-name>
  10. <param-value>classpath*:applicationContext.xml</param-value>
  11. </context-param>
  12. <!-- 去除
  13. <filter>
  14. <filter-name>struts-cleanup</filter-name>
  15. <filter-class>
  16. org.apache.struts2.dispatcher.ActionContextCleanUp
  17. </filter-class>
  18. </filter>
  19. <filter>
  20. <filter-name>struts</filter-name>
  21. <filter-class>
  22. org.apache.struts2.dispatcher.FilterDispatcher
  23. </filter-class>
  24. </filter>
  25. <filter-mapping>
  26. <filter-name>struts-cleanup</filter-name>
  27. <url-pattern>/*</url-pattern>
  28. </filter-mapping>
  29. <filter-mapping>
  30. <filter-name>struts</filter-name>
  31. <url-pattern>*.action</url-pattern>
  32. </filter-mapping>
  33. -->
  34. <filter>
  35. <filter-name>sitemesh</filter-name>
  36. <filter-class>
  37. com.opensymphony.module.sitemesh.filter.PageFilter
  38. </filter-class>
  39. </filter>
  40. <filter-mapping>
  41. <filter-name>sitemesh</filter-name>
  42. <url-pattern>/*</url-pattern>
  43. </filter-mapping>
  44. <filter>
  45. <filter-name>struts-prepare</filter-name>
  46. <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter</filter-class>
  47. </filter>
  48. <filter-mapping>
  49. <filter-name>struts-prepare</filter-name>
  50. <url-pattern>/*</url-pattern>
  51. </filter-mapping>
  52. <filter>
  53. <filter-name>struts-execute</filter-name>
  54. <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter</filter-class>
  55. </filter>
  56. <filter-mapping>
  57. <filter-name>struts-execute</filter-name>
  58. <url-pattern>/*</url-pattern>
  59. </filter-mapping>
  60. <filter>
  61. <filter-name>struts</filter-name>
  62. <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
  63. </filter>
  64. <filter-mapping>
  65. <filter-name>struts</filter-name>
  66. <url-pattern>/*</url-pattern>
  67. <dispatcher>REQUEST</dispatcher>
  68. <dispatcher>FORWARD</dispatcher>
  69. </filter-mapping>
  70. <listener>
  71. <listener-class>
  72. org.springframework.web.context.ContextLoaderListener
  73. </listener-class>
  74. </listener>
  75. <listener>
  76. <listener-class>
  77. org.springframework.web.context.request.RequestContextListener
  78. </listener-class>
  79. </listener>
  80. <listener>
  81. <listener-class>
  82. org.springframework.web.util.IntrospectorCleanupListener
  83. </listener-class>
  84. </listener>
  85. <session-config>
  86. <session-timeout>60</session-timeout>
  87. </session-config>
  88. <error-page>
  89. <error-code>404</error-code>
  90. <location>/pages/error/404.jsp</location>
  91. </error-page>
  92. <error-page>
  93. <error-code>403</error-code>
  94. <location>/pages/error/403.jsp</location>
  95. </error-page>
  96. <error-page>
  97. <error-code>500</error-code>
  98. <location>/pages/error/500.jsp</location>
  99. </error-page>
  100. <welcome-file-list>
  101. <welcome-file>index.jsp</welcome-file>
  102. </welcome-file-list>
  103. <!-- <servlet>
  104. <servlet-name>ReportServer</servlet-name>
  105. <servlet-class>com.fr.web.ReportServlet</servlet-class>
  106. <load-on-startup>0</load-on-startup>
  107. </servlet>
  108. <servlet-mapping>
  109. <servlet-name>ReportServer</servlet-name>
  110. <url-pattern>/ReportServer</url-pattern>
  111. </servlet-mapping>-->
  112. </web-app>