web.xml 2.7 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. <filter>
  13. <filter-name>struts-cleanup</filter-name>
  14. <filter-class>
  15. org.apache.struts2.dispatcher.ActionContextCleanUp
  16. </filter-class>
  17. </filter>
  18. <filter>
  19. <filter-name>sitemesh</filter-name>
  20. <filter-class>
  21. com.opensymphony.module.sitemesh.filter.PageFilter
  22. </filter-class>
  23. </filter>
  24. <filter-mapping>
  25. <filter-name>sitemesh</filter-name>
  26. <url-pattern>/*</url-pattern>
  27. </filter-mapping>
  28. <filter>
  29. <filter-name>struts</filter-name>
  30. <filter-class>
  31. org.apache.struts2.dispatcher.FilterDispatcher
  32. </filter-class>
  33. </filter>
  34. <filter-mapping>
  35. <filter-name>struts-cleanup</filter-name>
  36. <url-pattern>/*</url-pattern>
  37. </filter-mapping>
  38. <filter-mapping>
  39. <filter-name>struts</filter-name>
  40. <url-pattern>*.action</url-pattern>
  41. </filter-mapping>
  42. <!-- listeners -->
  43. <context-param>
  44. <param-name>log4jConfigLocation</param-name>
  45. <param-value>/WEB-INF/classes/log4j.properties</param-value>
  46. </context-param>
  47. <!-- 定义LOG4J监听器 -->
  48. <listener>
  49. <listener-class>
  50. org.springframework.web.util.Log4jConfigListener
  51. </listener-class>
  52. </listener>
  53. <listener>
  54. <listener-class>
  55. org.springframework.web.context.ContextLoaderListener
  56. </listener-class>
  57. </listener>
  58. <listener>
  59. <listener-class>
  60. org.springframework.web.context.request.RequestContextListener
  61. </listener-class>
  62. </listener>
  63. <listener>
  64. <listener-class>
  65. org.springframework.web.util.IntrospectorCleanupListener
  66. </listener-class>
  67. </listener>
  68. <session-config>
  69. <session-timeout>60</session-timeout>
  70. </session-config>
  71. <error-page>
  72. <error-code>404</error-code>
  73. <location>/pages/error/404.jsp</location>
  74. </error-page>
  75. <error-page>
  76. <error-code>403</error-code>
  77. <location>/pages/error/403.jsp</location>
  78. </error-page>
  79. <error-page>
  80. <error-code>500</error-code>
  81. <location>/pages/error/500.jsp</location>
  82. </error-page>
  83. <welcome-file-list>
  84. <welcome-file>index.jsp</welcome-file>
  85. </welcome-file-list>
  86. <!-- <servlet>
  87. <servlet-name>ReportServer</servlet-name>
  88. <servlet-class>com.fr.web.ReportServlet</servlet-class>
  89. <load-on-startup>0</load-on-startup>
  90. </servlet>
  91. <servlet-mapping>
  92. <servlet-name>ReportServer</servlet-name>
  93. <url-pattern>/ReportServer</url-pattern>
  94. </servlet-mapping>-->
  95. </web-app>