24 | | }}} |
25 | | |
26 | | {{{ |
27 | | #!xml |
28 | | <web-app |
29 | | xmlns="http://java.sun.com/xml/ns/j2ee" |
30 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
31 | | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" |
32 | | version="2.4"> |
33 | | |
34 | | <description> |
35 | | Default web.xml file. |
36 | | This file is applied to a Web application before it's own WEB_INF/web.xml file |
37 | | </description> |
38 | | |
39 | | |
40 | | |
41 | | <!-- ==================================================================== --> |
42 | | <!-- Context params to control Session Cookies --> |
43 | | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
44 | | <!-- UNCOMMENT TO ACTIVATE |
45 | | <context-param> |
46 | | <param-name>org.mortbay.jetty.servlet.SessionDomain</param-name> |
47 | | <param-value>127.0.0.1</param-value> |
48 | | </context-param> |
49 | | |
50 | | <context-param> |
51 | | <param-name>org.mortbay.jetty.servlet.SessionPath</param-name> |
52 | | <param-value>/</param-value> |
53 | | </context-param> |
54 | | |
55 | | <context-param> |
56 | | <param-name>org.mortbay.jetty.servlet.MaxAge</param-name> |
57 | | <param-value>-1</param-value> |
58 | | </context-param> |
59 | | --> |
60 | | |
96 | | <servlet> |
97 | | <servlet-name>default</servlet-name> |
98 | | <servlet-class>org.mortbay.jetty.servlet.Default</servlet-class> |
99 | | <init-param> |
100 | | <param-name>acceptRanges</param-name> |
101 | | <param-value>true</param-value> |
102 | | </init-param> |
103 | | <init-param> |
104 | | <param-name>dirAllowed</param-name> |
105 | | <param-value>true</param-value> |
106 | | </init-param> |
107 | | <init-param> |
108 | | <param-name>putAllowed</param-name> |
109 | | <param-value>false</param-value> |
110 | | </init-param> |
111 | | <init-param> |
112 | | <param-name>delAllowed</param-name> |
113 | | <param-value>false</param-value> |
114 | | </init-param> |
115 | | <init-param> |
116 | | <param-name>redirectWelcome</param-name> |
117 | | <param-value>false</param-value> |
118 | | </init-param> |
119 | | <init-param> |
120 | | <param-name>minGzipLength</param-name> |
121 | | <param-value>8192</param-value> |
122 | | </init-param> |
123 | | <load-on-startup>0</load-on-startup> |
124 | | </servlet> |
125 | | |
126 | | <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> |
127 | | |
| 59 | |
212 | | <servlet> |
213 | | <servlet-name>jsp</servlet-name> |
214 | | <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> |
215 | | <init-param> |
216 | | <param-name>logVerbosityLevel</param-name> |
217 | | <param-value>DEBUG</param-value> |
218 | | </init-param> |
219 | | <init-param> |
220 | | <param-name>fork</param-name> |
221 | | <param-value>false</param-value> |
222 | | </init-param> |
223 | | <init-param> |
224 | | <param-name>xpoweredBy</param-name> |
225 | | <param-value>false</param-value> |
226 | | </init-param> |
227 | | <load-on-startup>0</load-on-startup> |
228 | | </servlet> |
229 | | |
230 | | <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jsp</url-pattern> </servlet-mapping> |
231 | | <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jspf</url-pattern> </servlet-mapping> |
232 | | <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jspx</url-pattern> </servlet-mapping> |
233 | | <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.xsp</url-pattern> </servlet-mapping> |
257 | | <servlet-name>invoker</servlet-name> |
258 | | <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class> |
259 | | <init-param> |
260 | | <param-name>verbose</param-name> |
| 181 | <servlet-name>default</servlet-name> |
| 182 | <servlet-class>org.mortbay.jetty.servlet.Default</servlet-class> |
| 183 | <init-param> |
| 184 | <param-name>acceptRanges</param-name> |
| 185 | <param-value>true</param-value> |
| 186 | </init-param> |
| 187 | <init-param> |
| 188 | <param-name>dirAllowed</param-name> |
| 189 | <param-value>true</param-value> |
| 190 | </init-param> |
| 191 | <init-param> |
| 192 | <param-name>putAllowed</param-name> |
268 | | <param-name>dynamicParam</param-name> |
269 | | <param-value>anyValue</param-value> |
| 200 | <param-name>redirectWelcome</param-name> |
| 201 | <param-value>false</param-value> |
| 202 | </init-param> |
| 203 | <init-param> |
| 204 | <param-name>minGzipLength</param-name> |
| 205 | <param-value>8192</param-value> |
| 206 | </init-param> |
| 207 | <load-on-startup>0</load-on-startup> |
| 208 | </servlet> |
| 209 | |
| 210 | <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> |
| 211 | |
| 212 | <servlet> |
| 213 | <servlet-name>jsp</servlet-name> |
| 214 | <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> |
| 215 | <init-param> |
| 216 | <param-name>logVerbosityLevel</param-name> |
| 217 | <param-value>DEBUG</param-value> |
| 218 | </init-param> |
| 219 | <init-param> |
| 220 | <param-name>fork</param-name> |
| 221 | <param-value>false</param-value> |
| 222 | </init-param> |
| 223 | <init-param> |
| 224 | <param-name>xpoweredBy</param-name> |
| 225 | <param-value>false</param-value> |
274 | | <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping> |
275 | | --> |
276 | | |
277 | | |
278 | | |
279 | | <!-- ==================================================================== --> |
280 | | <session-config> |
281 | | <session-timeout>30</session-timeout> |
282 | | </session-config> |
283 | | |
284 | | <!-- ==================================================================== --> |
285 | | <!-- Default MIME mappings --> |
286 | | <!-- The default MIME mappings are provided by the mime.properties --> |
287 | | <!-- resource in the org.mortbay.jetty.jar file. Additional or modified --> |
288 | | <!-- mappings may be specified here --> |
289 | | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
290 | | <!-- UNCOMMENT TO ACTIVATE |
291 | | <mime-mapping> |
292 | | <extension>mysuffix</extension> |
293 | | <mime-type>mymime/type</mime-type> |
294 | | </mime-mapping> |
295 | | --> |
296 | | |
297 | | <!-- ==================================================================== --> |
298 | | <welcome-file-list> |
299 | | <welcome-file>/index.html</welcome-file> |
300 | | <welcome-file>/index.htm</welcome-file> |
301 | | <welcome-file>/index.jsp</welcome-file> |
302 | | </welcome-file-list> |
303 | | |
304 | | <!-- ==================================================================== --> |
| 230 | <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jsp</url-pattern> </servlet-mapping> |
| 231 | <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jspf</url-pattern> </servlet-mapping> |
| 232 | <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jspx</url-pattern> </servlet-mapping> |
| 233 | <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.xsp</url-pattern> </servlet-mapping> |
| 234 | |
347 | | |
348 | | <!-- ==================================================================== --> |
349 | | <!-- JSR154 Stupidness --> |
350 | | <!-- This filter implements some of the JSR154 (servlet 2.4) "features", --> |
351 | | <!-- which are rather stupid and expensive to implement. Thus they are --> |
352 | | <!-- not included in the core Jetty architecture. It is HIGHLY --> |
353 | | <!-- RECOMMENDED that this filter NOT be used, unless you need: --> |
354 | | <!-- RequestAttributeListeners - If you actually have a real use for --> |
355 | | <!-- these, please tell the jetty lists what they are and why you --> |
356 | | <!-- can't use a normal filter/wrapper for this? --> |
357 | | <!-- SRV.6.2.2 Dispatachers - where the container cannot wrap the --> |
358 | | <!-- request or response. See --> |
359 | | <!-- http://jetty.mortbay.org/jetty/doc/servlet24.html#d0e711 --> |
360 | | <!-- to find out why this is stupid. --> |
361 | | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
362 | | <!-- UNCOMMENT For compliant behaviour |
363 | | <filter> |
364 | | <filter-name>jsr154</filter-name> |
365 | | <filter-class>org.mortbay.jetty.servlet.JSR154Filter</filter-class> |
366 | | <init-param><param-name>unwrappedDispatch</param-name><param-value>true</param-value></init-param> |
367 | | </filter> |
368 | | <filter-mapping> |
369 | | <filter-name>jsr154</filter-name> |
370 | | <url-pattern>/*</url-pattern> |
371 | | <dispatcher>REQUEST</dispatcher> |
372 | | <dispatcher>FORWARD</dispatcher> |
373 | | <dispatcher>INCLUDE</dispatcher> |
374 | | <dispatcher>ERROR</dispatcher> |
375 | | </filter-mapping> |
376 | | --> |
377 | | |