Advertisement
Guest User

webxml

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