This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

web.xml

By: a guest on Apr 24th, 2012  |  syntax: XML  |  size: 2.15 KB  |  views: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <web-app ...>
  2.         <context-param>
  3.             <param-name>contextConfigLocation</param-name>
  4.             <param-value>context.xml</param-value>
  5.         </context-param>
  6.         <listener>
  7.             <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  8.         </listener>
  9.         <filter>
  10.             <filter-name>shiroFilter</filter-name>
  11.             <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  12.             <init-param>
  13.                 <param-name>targetFilterLifecycle</param-name>
  14.                 <param-value>true</param-value>
  15.             </init-param>
  16.         </filter>
  17.         <filter-mapping>
  18.             <filter-name>shiroFilter</filter-name>
  19.             <url-pattern>/*</url-pattern>
  20.         </filter-mapping>
  21.         <filter>
  22.             <filter-name>characterEncodingFilter</filter-name>
  23.             <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  24.             <init-param>
  25.                 <param-name>encoding</param-name>
  26.                 <param-value>UTF-8</param-value>
  27.             </init-param>
  28.             <init-param>
  29.                 <param-name>forceEncoding</param-name>
  30.                 <param-value>true</param-value>
  31.             </init-param>
  32.         </filter>
  33.    
  34.         <filter-mapping>
  35.             <filter-name>characterEncodingFilter</filter-name>
  36.             <url-pattern>/*</url-pattern>
  37.         </filter-mapping>
  38.        
  39.         <!-- Handles all requests into the application -->
  40.         <servlet>
  41.             <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
  42.             <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  43.             <init-param>
  44.                 <param-name>contextConfigLocation</param-name>
  45.                 <param-value>/WEB-INF/spring/webapp-context.xml</param-value>
  46.             </init-param>
  47.             <load-on-startup>1</load-on-startup>
  48.         </servlet>
  49.    
  50.         <servlet-mapping>
  51.             <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
  52.             <url-pattern>/</url-pattern>
  53.         </servlet-mapping>
  54.     </web-app>
clone this paste RAW Paste Data