WIP: examples - spring
[percentcodec] / examples / spring / src / main / webapp / WEB-INF / web.xml
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   <!-- Context Configuration locations for Spring XML files -->
7
8   <context-param>
9     <param-name>contextConfigLocation</param-name>
10     <param-value>classpath:/config.xml</param-value>
11   </context-param>
12
13
14   <!-- Listener-Definitions -->
15
16   <listener>
17     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
18   </listener>
19
20
21   <!-- Filter-Definitions -->
22
23   <filter>
24     <filter-name>accelerator</filter-name>
25     <filter-class>de.halbekunst.juplo.cachecontrol.AcceleratorFilter</filter-class>
26   </filter>
27
28   <filter>
29     <filter-name>logger</filter-name>
30     <filter-class>de.halbekunst.juplo.test.LoggingHttpServletResponseFilter</filter-class>
31   </filter>
32
33
34   <!-- Filter-Mappings -->
35
36   <filter-mapping>
37     <filter-name>logger</filter-name>
38     <url-pattern>*.html</url-pattern>
39   </filter-mapping>
40
41   <filter-mapping>
42     <filter-name>accelerator</filter-name>
43     <url-pattern>*.html</url-pattern>
44   </filter-mapping>
45
46
47   <!-- Servlet-Definitions -->
48
49   <servlet>
50     <servlet-name>dispatcher-servlet</servlet-name>
51     <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
52     <init-param>
53       <param-name>contextConfigLocation</param-name>
54       <param-value>
55       </param-value>
56     </init-param>
57     <load-on-startup>1</load-on-startup>
58   </servlet>
59
60
61   <!-- Servlet-Mappings -->
62
63   <servlet-mapping>
64     <servlet-name>dispatcher-servlet</servlet-name>
65     <url-pattern>*.html</url-pattern>
66   </servlet-mapping>
67
68 </web-app>