1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | |
---|
3 | <!-- |
---|
4 | The web.xml is editable, you may customize it to your needs. Note that |
---|
5 | changes to this file may render your project unusable, so caution should |
---|
6 | be taken. |
---|
7 | --> |
---|
8 | <web-app xmlns="http://java.sun.com/xml/ns/j2ee" |
---|
9 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
10 | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" |
---|
11 | version="2.4"> |
---|
12 | <display-name>Project Name</display-name> |
---|
13 | |
---|
14 | <servlet> |
---|
15 | <!-- this servlet-name is part of the springapp-servlet.xml filename --> |
---|
16 | <servlet-name>springapp</servlet-name> |
---|
17 | <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
---|
18 | |
---|
19 | <init-param> |
---|
20 | <param-name>namespace</param-name> |
---|
21 | <param-value>project-springapp</param-value> |
---|
22 | </init-param> |
---|
23 | |
---|
24 | <load-on-startup>1</load-on-startup> |
---|
25 | </servlet> |
---|
26 | |
---|
27 | <servlet-mapping> |
---|
28 | <servlet-name>springapp</servlet-name> |
---|
29 | <url-pattern>*.json</url-pattern> |
---|
30 | </servlet-mapping> |
---|
31 | |
---|
32 | <servlet-mapping> |
---|
33 | <servlet-name>springapp</servlet-name> |
---|
34 | <url-pattern>*.download</url-pattern> |
---|
35 | </servlet-mapping> |
---|
36 | |
---|
37 | <servlet-mapping> |
---|
38 | <servlet-name>springapp</servlet-name> |
---|
39 | <url-pattern>*.upload</url-pattern> |
---|
40 | </servlet-mapping> |
---|
41 | |
---|
42 | <welcome-file-list> |
---|
43 | <welcome-file>index.html</welcome-file> |
---|
44 | </welcome-file-list> |
---|
45 | |
---|
46 | <!-- |
---|
47 | Loads the root application context of this web app at startup. |
---|
48 | The application context is then available via |
---|
49 | WebApplicationContextUtils.getWebApplicationContext(ServletContext). |
---|
50 | --> |
---|
51 | <listener> |
---|
52 | <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
---|
53 | </listener> |
---|
54 | |
---|
55 | <listener> |
---|
56 | <listener-class>com.wavemaker.runtime.server.CleanupListener</listener-class> |
---|
57 | </listener> |
---|
58 | |
---|
59 | <!-- |
---|
60 | Location of the XML file that defines the root application context. |
---|
61 | Applied by ContextLoaderListener. |
---|
62 | --> |
---|
63 | <context-param> |
---|
64 | <param-name>contextConfigLocation</param-name> |
---|
65 | <param-value>/WEB-INF/project-springapp.xml</param-value> |
---|
66 | </context-param> |
---|
67 | |
---|
68 | <!-- |
---|
69 | Filter requests into UTF-8. This must be the first filter defined/run. |
---|
70 | --> |
---|
71 | <filter> |
---|
72 | <filter-name>springEncodingFilter</filter-name> |
---|
73 | <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> |
---|
74 | <init-param> |
---|
75 | <param-name>encoding</param-name> |
---|
76 | <param-value>UTF-8</param-value> |
---|
77 | </init-param> |
---|
78 | <init-param> |
---|
79 | <param-name>forceEncoding</param-name> |
---|
80 | <param-value>true</param-value> |
---|
81 | </init-param> |
---|
82 | </filter> |
---|
83 | <filter-mapping> |
---|
84 | <filter-name>springEncodingFilter</filter-name> |
---|
85 | <url-pattern>/*</url-pattern> |
---|
86 | </filter-mapping> |
---|
87 | |
---|
88 | <!-- security configuration --> |
---|
89 | <filter> |
---|
90 | <filter-name>Acegi Ajax Filter</filter-name> |
---|
91 | <filter-class>com.wavemaker.runtime.security.AcegiAjaxFilter</filter-class> |
---|
92 | </filter> |
---|
93 | |
---|
94 | <filter> |
---|
95 | <filter-name>Acegi Filter Chain Proxy</filter-name> |
---|
96 | <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class> |
---|
97 | <init-param> |
---|
98 | <param-name>targetBean</param-name> |
---|
99 | <param-value>filterChainProxy</param-value> |
---|
100 | </init-param> |
---|
101 | </filter> |
---|
102 | |
---|
103 | <filter-mapping> |
---|
104 | <filter-name>Acegi Ajax Filter</filter-name> |
---|
105 | <url-pattern>/j_acegi_security_check</url-pattern> |
---|
106 | </filter-mapping> |
---|
107 | |
---|
108 | <filter-mapping> |
---|
109 | <filter-name>Acegi Filter Chain Proxy</filter-name> |
---|
110 | <url-pattern>/*</url-pattern> |
---|
111 | </filter-mapping> |
---|
112 | </web-app> |
---|