Advertisement
Guest User

Web.xml

a guest
Dec 15th, 2014
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  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. <!-- The definition of the Root Spring Container shared by all Servlets and Filters -->
  7. <context-param>
  8. <param-name>contextConfigLocation</param-name>
  9. <param-value>/WEB-INF/spring/exampleApplicationContext.xml</param-value>
  10. </context-param>
  11.  
  12. <!-- Creates the Spring Container shared by all Servlets and Filters -->
  13. <listener>
  14. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  15. </listener>
  16.  
  17. <!-- Processes application requests -->
  18. <servlet>
  19. <servlet-name>appServlet</servlet-name>
  20. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  21. <init-param>
  22. <param-name>contextConfigLocation</param-name>
  23. <param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
  24. </init-param>
  25. </servlet>
  26.  
  27. <servlet-mapping>
  28. <servlet-name>appServlet</servlet-name>
  29. <url-pattern>/*</url-pattern>
  30. </servlet-mapping>
  31.  
  32. <!-- <welcome-file-list>
  33. <welcome-file>index.html</welcome-file>
  34. </welcome-file-list> -->
  35.  
  36.  
  37.  
  38. <filter>
  39. <filter-name>characterEncodingFilter</filter-name>
  40. <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  41.  
  42. <init-param>
  43. <param-name>encoding</param-name>
  44. <param-value>UTF-8</param-value>
  45. </init-param>
  46. <init-param>
  47. <param-name>force</param-name>
  48. <param-value>true</param-value>
  49. </init-param>
  50.  
  51. </filter>
  52.  
  53.  
  54. <filter>
  55. <filter-name>springSecurityFilterChain</filter-name>
  56. <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  57. </filter>
  58.  
  59. <filter-mapping>
  60. <filter-name>springSecurityFilterChain</filter-name>
  61. <url-pattern>/*</url-pattern>
  62. <dispatcher>REQUEST</dispatcher>
  63. <dispatcher>FORWARD</dispatcher>
  64. </filter-mapping>
  65.  
  66.  
  67. <filter>
  68. <filter-name>sitemesh</filter-name>
  69. <filter-class>org.sitemesh.config.ConfigurableSiteMeshFilter</filter-class>
  70. </filter>
  71.  
  72. <filter-mapping>
  73. <filter-name>sitemesh</filter-name>
  74. <url-pattern>*.jsp</url-pattern>
  75. <dispatcher>REQUEST</dispatcher>
  76. <dispatcher>FORWARD</dispatcher>
  77. </filter-mapping>
  78.  
  79. </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement