web.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
  3. <description> system </description>
  4. <context-param>
  5. <param-name>contextConfigLocation</param-name>
  6. <param-value>classpath*:applicationContext.xml</param-value>
  7. </context-param>
  8. <filter>
  9. <filter-name>struts-cleanup</filter-name>
  10. <filter-class>
  11. org.apache.struts2.dispatcher.ActionContextCleanUp
  12. </filter-class>
  13. </filter>
  14. <filter>
  15. <filter-name>sitemesh</filter-name>
  16. <filter-class>
  17. com.opensymphony.module.sitemesh.filter.PageFilter
  18. </filter-class>
  19. </filter>
  20. <filter-mapping>
  21. <filter-name>sitemesh</filter-name>
  22. <url-pattern>/*</url-pattern>
  23. </filter-mapping>
  24. <filter>
  25. <filter-name>struts</filter-name>
  26. <filter-class>
  27. org.apache.struts2.dispatcher.FilterDispatcher
  28. </filter-class>
  29. </filter>
  30. <filter-mapping>
  31. <filter-name>struts-cleanup</filter-name>
  32. <url-pattern>/*</url-pattern>
  33. </filter-mapping>
  34. <filter-mapping>
  35. <filter-name>struts</filter-name>
  36. <url-pattern>*.action</url-pattern>
  37. </filter-mapping>
  38. <context-param>
  39. <param-name>log4jConfigLocation</param-name>
  40. <param-value>/WEB-INF/classes/log4j.properties</param-value>
  41. </context-param>
  42. <listener>
  43. <listener-class>
  44. org.springframework.web.util.Log4jConfigListener
  45. </listener-class>
  46. </listener>
  47. <listener>
  48. <listener-class>
  49. org.springframework.web.context.ContextLoaderListener
  50. </listener-class>
  51. </listener>
  52. <listener>
  53. <listener-class>
  54. org.springframework.web.context.request.RequestContextListener
  55. </listener-class>
  56. </listener>
  57. <listener>
  58. <listener-class>
  59. org.springframework.web.util.IntrospectorCleanupListener
  60. </listener-class>
  61. </listener>
  62. <session-config>
  63. <session-timeout>60</session-timeout>
  64. </session-config>
  65. <error-page>
  66. <error-code>404</error-code>
  67. <location>/pages/error/404.jsp</location>
  68. </error-page>
  69. <error-page>
  70. <error-code>403</error-code>
  71. <location>/pages/error/403.jsp</location>
  72. </error-page>
  73. <error-page>
  74. <error-code>500</error-code>
  75. <location>/pages/error/500.jsp</location>
  76. </error-page>
  77. <welcome-file-list>
  78. <welcome-file>index.jsp</welcome-file>
  79. </welcome-file-list>
  80. </web-app>