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: anidotnet on Jan 5th, 2013  |  syntax: XML  |  size: 2.28 KB  |  views: 27  |  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. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app>
  3.  
  4.     <display-name>cat</display-name>
  5.  
  6.     <servlet>
  7.         <servlet-name>log4j-init</servlet-name>
  8.         <servlet-class>org.cat.core.servlets.Log4jInit</servlet-class>
  9.  
  10.         <init-param>
  11.             <param-name>LOG4J_INIT_FILE</param-name>
  12.             <param-value>/WEB-INF/classes/properties/log4j.properties
  13.             </param-value>
  14.         </init-param>
  15.         <load-on-startup>1</load-on-startup>
  16.     </servlet>
  17.  
  18.     <context-param>
  19.         <param-name>contextConfigLocation</param-name>
  20.         <param-value>/WEB-INF/applicationContext.xml, /WEB-INF/spring-beans/spring-security.xml</param-value>
  21.     </context-param>
  22.  
  23.     <listener>
  24.         <listener-class>org.springframework.web.context.ContextLoaderListener
  25.         </listener-class>
  26.     </listener>
  27.  
  28.     <!-- Processes application requests -->
  29.     <servlet>
  30.         <servlet-name>appServlet</servlet-name>
  31.         <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  32.         <init-param>
  33.             <param-name>contextConfigLocation</param-name>
  34.             <param-value>/WEB-INF/spring-beans/servlet-context.xml</param-value>
  35.         </init-param>
  36.         <load-on-startup>1</load-on-startup>
  37.     </servlet>
  38.  
  39.     <servlet-mapping>
  40.         <servlet-name>appServlet</servlet-name>
  41.         <url-pattern>/</url-pattern>
  42.     </servlet-mapping>
  43.  
  44.     <welcome-file-list>
  45.         <welcome-file>/</welcome-file>
  46.     </welcome-file-list>
  47.  
  48.     <jsp-config>
  49.         <taglib>
  50.             <taglib-uri>/spring</taglib-uri>
  51.             <taglib-location>/WEB-INF/spring.tld</taglib-location>
  52.         </taglib>
  53.     </jsp-config>
  54.  
  55.     <filter>
  56.       <filter-name>springSecurityFilterChain</filter-name>
  57.       <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  58.     </filter>
  59.  
  60.     <filter-mapping>
  61.       <filter-name>springSecurityFilterChain</filter-name>
  62.       <url-pattern>/*</url-pattern>
  63.     </filter-mapping>
  64.  
  65.     <filter>
  66.       <filter-name>sitemesh</filter-name>
  67.       <filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class>
  68.     </filter>
  69.  
  70.     <filter-mapping>
  71.       <filter-name>sitemesh</filter-name>
  72.       <url-pattern>/*</url-pattern>
  73.     </filter-mapping>
  74.  
  75. </web-app>
clone this paste RAW Paste Data