| 1 | = webdefault.xml = |
| 2 | |
| 3 | {{{ |
| 4 | #!sh |
| 5 | <!-- ===================================================================== --> |
| 6 | <!-- This file contains the default descriptor for web applications. --> |
| 7 | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 8 | <!-- The intent of this descriptor is to include jetty specific or common --> |
| 9 | <!-- configuration for all webapps. If a context has a webdefault.xml --> |
| 10 | <!-- descriptor, it is applied before the contexts own web.xml file --> |
| 11 | <!-- --> |
| 12 | <!-- A context may be assigned a default descriptor by: --> |
| 13 | <!-- + Allowing the default defaultweb.xml to be applied --> |
| 14 | <!-- + Calling WebApplicationContext.setDefaultsDescriptor --> |
| 15 | <!-- + Passed an arg to addWebApplications --> |
| 16 | <!-- --> |
| 17 | <!-- If a defaults descriptor is set, it is first looked for as a system --> |
| 18 | <!-- resource. The jetty jar contains a webdefault.xml file as a resource --> |
| 19 | <!-- at "org/mortbay/jetty/servlet/webdefault.xml". If a system resource --> |
| 20 | <!-- is not found, then a normal resource is tried, thus a filename or URL --> |
| 21 | <!-- may be used to specify an arbitrary file. --> |
| 22 | <!-- --> |
| 23 | <!-- ===================================================================== --> |
| 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 | |
| 61 | |
| 62 | |
| 63 | <!-- ==================================================================== --> |
| 64 | <!-- The default servlet. --> |
| 65 | <!-- This servlet, normally mapped to /, provides the handling for static --> |
| 66 | <!-- content, OPTIONS and TRACE methods for the context. --> |
| 67 | <!-- The following initParameters are supported: --> |
| 68 | <!-- --> |
| 69 | <!-- acceptRanges If true, range requests and responses are --> |
| 70 | <!-- supported --> |
| 71 | <!-- --> |
| 72 | <!-- dirAllowed If true, directory listings are returned if no --> |
| 73 | <!-- welcome file is found. Else 403 Forbidden. --> |
| 74 | <!-- --> |
| 75 | <!-- putAllowed If true, the PUT method is allowed --> |
| 76 | <!-- --> |
| 77 | <!-- delAllowed If true, the DELETE method is allowed --> |
| 78 | <!-- --> |
| 79 | <!-- redirectWelcome If true, redirect welcome file requests --> |
| 80 | <!-- else use request dispatcher forwards --> |
| 81 | <!-- --> |
| 82 | <!-- minGzipLength If set to a positive integer, then static content --> |
| 83 | <!-- larger than this will be served as gzip content --> |
| 84 | <!-- encoded if a matching resource is found ending --> |
| 85 | <!-- with ".gz" --> |
| 86 | <!-- --> |
| 87 | <!-- resoureBase Can be set to replace the context resource base --> |
| 88 | <!-- --> |
| 89 | <!-- relativeResourceBase --> |
| 90 | <!-- Set with a pathname relative to the base of the --> |
| 91 | <!-- servlet context root. Useful for only serving --> |
| 92 | <!-- static content from only specific subdirectories. --> |
| 93 | <!-- --> |
| 94 | <!-- The MOVE method is allowed if PUT and DELETE are allowed --> |
| 95 | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 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 | |
| 128 | |
| 129 | <!-- ==================================================================== --> |
| 130 | <!-- JSP Servlet --> |
| 131 | <!-- This is the jasper JSP servlet from the jakarta project --> |
| 132 | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 133 | <!-- The JSP page compiler and execution servlet, which is the mechanism --> |
| 134 | <!-- used by Tomcat to support JSP pages. Traditionally, this servlet --> |
| 135 | <!-- is mapped to URL patterh "*.jsp". This servlet supports the --> |
| 136 | <!-- following initialization parameters (default values are in square --> |
| 137 | <!-- brackets): --> |
| 138 | <!-- --> |
| 139 | <!-- checkInterval If development is false and reloading is true, --> |
| 140 | <!-- background compiles are enabled. checkInterval --> |
| 141 | <!-- is the time in seconds between checks to see --> |
| 142 | <!-- if a JSP page needs to be recompiled. [300] --> |
| 143 | <!-- --> |
| 144 | <!-- compiler Which compiler Ant should use to compile JSP --> |
| 145 | <!-- pages. See the Ant documenation for more --> |
| 146 | <!-- information. [javac] --> |
| 147 | <!-- --> |
| 148 | <!-- classdebuginfo Should the class file be compiled with --> |
| 149 | <!-- debugging information? [true] --> |
| 150 | <!-- --> |
| 151 | <!-- classpath What class path should I use while compiling --> |
| 152 | <!-- generated servlets? [Created dynamically --> |
| 153 | <!-- based on the current web application] --> |
| 154 | <!-- --> |
| 155 | <!-- development Is Jasper used in development mode (will check --> |
| 156 | <!-- for JSP modification on every access)? [true] --> |
| 157 | <!-- --> |
| 158 | <!-- enablePooling Determines whether tag handler pooling is --> |
| 159 | <!-- enabled [true] --> |
| 160 | <!-- --> |
| 161 | <!-- fork Tell Ant to fork compiles of JSP pages so that --> |
| 162 | <!-- a separate JVM is used for JSP page compiles --> |
| 163 | <!-- from the one Tomcat is running in. [true] --> |
| 164 | <!-- --> |
| 165 | <!-- ieClassId The class-id value to be sent to Internet --> |
| 166 | <!-- Explorer when using <jsp:plugin> tags. --> |
| 167 | <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] --> |
| 168 | <!-- --> |
| 169 | <!-- javaEncoding Java file encoding to use for generating java --> |
| 170 | <!-- source files. [UTF8] --> |
| 171 | <!-- --> |
| 172 | <!-- keepgenerated Should we keep the generated Java source code --> |
| 173 | <!-- for each page instead of deleting it? [true] --> |
| 174 | <!-- --> |
| 175 | <!-- logVerbosityLevel The level of detailed messages to be produced --> |
| 176 | <!-- by this servlet. Increasing levels cause the --> |
| 177 | <!-- generation of more messages. Valid values are --> |
| 178 | <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. --> |
| 179 | <!-- [WARNING] --> |
| 180 | <!-- --> |
| 181 | <!-- mappedfile Should we generate static content with one --> |
| 182 | <!-- print statement per input line, to ease --> |
| 183 | <!-- debugging? [false] --> |
| 184 | <!-- --> |
| 185 | <!-- --> |
| 186 | <!-- reloading Should Jasper check for modified JSPs? [true] --> |
| 187 | <!-- --> |
| 188 | <!-- suppressSmap Should the generation of SMAP info for JSR45 --> |
| 189 | <!-- debugging be suppressed? [false] --> |
| 190 | <!-- --> |
| 191 | <!-- dumpSmap Should the SMAP info for JSR45 debugging be --> |
| 192 | <!-- dumped to a file? [false] --> |
| 193 | <!-- False if suppressSmap is true --> |
| 194 | <!-- --> |
| 195 | <!-- scratchdir What scratch directory should we use when --> |
| 196 | <!-- compiling JSP pages? [default work directory --> |
| 197 | <!-- for the current web application] --> |
| 198 | <!-- --> |
| 199 | <!-- tagpoolMaxSize The maximum tag handler pool size [5] --> |
| 200 | <!-- --> |
| 201 | <!-- xpoweredBy Determines whether X-Powered-By response --> |
| 202 | <!-- header is added by generated servlet [false] --> |
| 203 | <!-- --> |
| 204 | <!-- If you wish to use Jikes to compile JSP pages: --> |
| 205 | <!-- Set the init parameter "compiler" to "jikes". Define --> |
| 206 | <!-- the property "-Dbuild.compiler.emacs=true" when starting Jetty --> |
| 207 | <!-- to cause Jikes to emit error messages in a format compatible with --> |
| 208 | <!-- Jasper. --> |
| 209 | <!-- If you get an error reporting that jikes can't use UTF8 encoding, --> |
| 210 | <!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". --> |
| 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> |
| 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> |
| 234 | |
| 235 | |
| 236 | <!-- ==================================================================== --> |
| 237 | <!-- Dynamic Servlet Invoker. --> |
| 238 | <!-- This servlet invokes anonymous servlets that have not been defined --> |
| 239 | <!-- in the web.xml or by other means. The first element of the pathInfo --> |
| 240 | <!-- of a request passed to the envoker is treated as a servlet name for --> |
| 241 | <!-- an existing servlet, or as a class name of a new servlet. --> |
| 242 | <!-- This servlet is normally mapped to /servlet/* --> |
| 243 | <!-- This servlet support the following initParams: --> |
| 244 | <!-- --> |
| 245 | <!-- nonContextServlets If false, the invoker can only load --> |
| 246 | <!-- servlets from the contexts classloader. --> |
| 247 | <!-- This is false by default and setting this --> |
| 248 | <!-- to true may have security implications. --> |
| 249 | <!-- --> |
| 250 | <!-- verbose If true, log dynamic loads --> |
| 251 | <!-- --> |
| 252 | <!-- * All other parameters are copied to the --> |
| 253 | <!-- each dynamic servlet as init parameters --> |
| 254 | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 255 | <!-- Uncomment for dynamic invocation |
| 256 | <servlet> |
| 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> |
| 261 | <param-value>false</param-value> |
| 262 | </init-param> |
| 263 | <init-param> |
| 264 | <param-name>nonContextServlets</param-name> |
| 265 | <param-value>false</param-value> |
| 266 | </init-param> |
| 267 | <init-param> |
| 268 | <param-name>dynamicParam</param-name> |
| 269 | <param-value>anyValue</param-value> |
| 270 | </init-param> |
| 271 | <load-on-startup>0</load-on-startup> |
| 272 | </servlet> |
| 273 | |
| 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 | <!-- ==================================================================== --> |
| 305 | <locale-encoding-mapping-list> |
| 306 | <locale-encoding-mapping><locale>ar</locale><encoding>ISO-8859-6</encoding></locale-encoding-mapping> |
| 307 | <locale-encoding-mapping><locale>be</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping> |
| 308 | <locale-encoding-mapping><locale>bg</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping> |
| 309 | <locale-encoding-mapping><locale>ca</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 310 | <locale-encoding-mapping><locale>cs</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping> |
| 311 | <locale-encoding-mapping><locale>da</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 312 | <locale-encoding-mapping><locale>de</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 313 | <locale-encoding-mapping><locale>el</locale><encoding>ISO-8859-7</encoding></locale-encoding-mapping> |
| 314 | <locale-encoding-mapping><locale>en</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 315 | <locale-encoding-mapping><locale>es</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 316 | <locale-encoding-mapping><locale>et</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 317 | <locale-encoding-mapping><locale>fi</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 318 | <locale-encoding-mapping><locale>fr</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 319 | <locale-encoding-mapping><locale>hr</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping> |
| 320 | <locale-encoding-mapping><locale>hu</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping> |
| 321 | <locale-encoding-mapping><locale>is</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 322 | <locale-encoding-mapping><locale>it</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 323 | <locale-encoding-mapping><locale>iw</locale><encoding>ISO-8859-8</encoding></locale-encoding-mapping> |
| 324 | <locale-encoding-mapping><locale>ja</locale><encoding>Shift_JIS</encoding></locale-encoding-mapping> |
| 325 | <locale-encoding-mapping><locale>ko</locale><encoding>EUC-KR</encoding></locale-encoding-mapping> |
| 326 | <locale-encoding-mapping><locale>lt</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping> |
| 327 | <locale-encoding-mapping><locale>lv</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping> |
| 328 | <locale-encoding-mapping><locale>mk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping> |
| 329 | <locale-encoding-mapping><locale>nl</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 330 | <locale-encoding-mapping><locale>no</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 331 | <locale-encoding-mapping><locale>pl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping> |
| 332 | <locale-encoding-mapping><locale>pt</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 333 | <locale-encoding-mapping><locale>ro</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping> |
| 334 | <locale-encoding-mapping><locale>ru</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping> |
| 335 | <locale-encoding-mapping><locale>sh</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping> |
| 336 | <locale-encoding-mapping><locale>sk</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping> |
| 337 | <locale-encoding-mapping><locale>sl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping> |
| 338 | <locale-encoding-mapping><locale>sq</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping> |
| 339 | <locale-encoding-mapping><locale>sr</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping> |
| 340 | <locale-encoding-mapping><locale>sv</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping> |
| 341 | <locale-encoding-mapping><locale>tr</locale><encoding>ISO-8859-9</encoding></locale-encoding-mapping> |
| 342 | <locale-encoding-mapping><locale>uk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping> |
| 343 | <locale-encoding-mapping><locale>zh</locale><encoding>GB2312</encoding></locale-encoding-mapping> |
| 344 | <locale-encoding-mapping><locale>zh_TW</locale><encoding>Big5</encoding></locale-encoding-mapping> |
| 345 | </locale-encoding-mapping-list> |
| 346 | |
| 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 | |
| 378 | </web-app> |
| 379 | }}} |