Guest User

SpringSocialWeb.xml

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