|
15 | 15 | See the License for the specific language governing permissions and |
16 | 16 | limitations under the License. |
17 | 17 | --> |
18 | | -<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" |
| 18 | +<web-app xmlns="https://jakarta.ee/xml/ns/jakartaee" |
19 | 19 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
20 | | - xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee |
21 | | - http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" |
22 | | - version="4.0"> |
| 20 | + xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee |
| 21 | + https://jakarta.ee/xml/ns/jakartaee/web-app_6_1.xsd" |
| 22 | + version="6.1"> |
23 | 23 |
|
24 | 24 | <!-- ======================== Introduction ============================== --> |
25 | 25 | <!-- This document defines default values for *all* web applications --> |
|
32 | 32 | <!-- They should go in the "/WEB-INF/web.xml" file in your application. --> |
33 | 33 |
|
34 | 34 |
|
| 35 | + <!-- Set the default request and response character encodings to UTF-8. --> |
| 36 | + <request-character-encoding>UTF-8</request-character-encoding> |
| 37 | + <response-character-encoding>UTF-8</response-character-encoding> |
| 38 | + |
| 39 | + |
35 | 40 | <!-- ================== Built In Servlet Definitions ==================== --> |
36 | 41 |
|
37 | 42 |
|
|
73 | 78 | <!-- contents. [null] --> |
74 | 79 | <!-- --> |
75 | 80 | <!-- sendfileSize If the connector used supports sendfile, this --> |
76 | | - <!-- represents the minimal file size in KB for --> |
| 81 | + <!-- represents the minimal file size in KiB for --> |
77 | 82 | <!-- which sendfile will be used. Use a negative --> |
78 | 83 | <!-- value to always disable sendfile. [48] --> |
79 | 84 | <!-- --> |
80 | 85 | <!-- useAcceptRanges Should the Accept-Ranges header be included --> |
81 | 86 | <!-- in responses where appropriate? [true] --> |
| 87 | + <!-- Deprecated. This option will be removed --> |
| 88 | + <!-- without replacement in Tomcat 12 onwards where --> |
| 89 | + <!-- it will effectively be hard coded to true. --> |
82 | 90 | <!-- --> |
83 | 91 | <!-- For directory listing customization. Checks localXsltFile, then --> |
84 | 92 | <!-- globalXsltFile, then defaults to original behavior. --> |
|
106 | 114 | <!-- listings is enabled? [true] --> |
107 | 115 | <!-- --> |
108 | 116 | <!-- allowPartialPut Should the server treat an HTTP PUT request --> |
109 | | - <!-- with a Range header as a partial PUT? Note --> |
110 | | - <!-- that while RFC 7233 clarified that Range --> |
111 | | - <!-- headers only valid for GET requests, RFC 9110 --> |
112 | | - <!-- (which obsoletes RFC 7233) now allows partial --> |
113 | | - <!-- puts. [true] --> |
| 117 | + <!-- with a Content-Range header as a partial PUT? --> |
| 118 | + <!-- Note that while RFC 7231 clarified that such a --> |
| 119 | + <!-- PUT with a Content-Range header field is a bad --> |
| 120 | + <!-- request, RFC 9110 (which obsoletes RFC 7231) --> |
| 121 | + <!-- now allows partial PUT. [true] --> |
| 122 | + <!-- --> |
| 123 | + <!-- directoryRedirectStatusCode --> |
| 124 | + <!-- Status code to use for directory redirects. --> |
| 125 | + <!-- Possible values: 301, 302, 307, 308 --> |
| 126 | + <!-- [302] --> |
114 | 127 |
|
115 | 128 | <servlet> |
116 | 129 | <servlet-name>default</servlet-name> |
|
150 | 163 | <!-- pages. See the jasper documentation for more --> |
151 | 164 | <!-- information. --> |
152 | 165 | <!-- --> |
153 | | - <!-- compilerSourceVM Compiler source VM. [1.8] --> |
| 166 | + <!-- compilerSourceVM Compiler source VM. [17] --> |
154 | 167 | <!-- --> |
155 | | - <!-- compilerTargetVM Compiler target VM. [1.8] --> |
| 168 | + <!-- compilerTargetVM Compiler target VM. [17] --> |
156 | 169 | <!-- --> |
157 | 170 | <!-- development Is Jasper used in development mode? If true, --> |
158 | 171 | <!-- the frequency at which JSPs are checked for --> |
|
175 | 188 | <!-- engineOptionsClass Allows specifying the Options class used to --> |
176 | 189 | <!-- configure Jasper. If not present, the default --> |
177 | 190 | <!-- EmbeddedServletOptions will be used. --> |
178 | | - <!-- This option is ignored when running under a --> |
179 | | - <!-- SecurityManager. --> |
180 | 191 | <!-- --> |
181 | 192 | <!-- errorOnUseBeanInvalidClassAttribute --> |
182 | 193 | <!-- Should Jasper issue an error when the value of --> |
|
192 | 203 | <!-- arrays, to improve performance in some cases? --> |
193 | 204 | <!-- [false] --> |
194 | 205 | <!-- --> |
195 | | - <!-- ieClassId Deprecated. Will be removed in Tomcat 10.1 --> |
196 | | - <!-- The class-id value to be sent to Internet --> |
197 | | - <!-- Explorer when using <jsp:plugin> tags. --> |
198 | | - <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] --> |
199 | | - <!-- --> |
200 | 206 | <!-- javaEncoding Java file encoding to use for generating java --> |
201 | 207 | <!-- source files. [UTF8] --> |
202 | 208 | <!-- --> |
|
239 | 245 | <!-- scratchdir What scratch directory should we use when --> |
240 | 246 | <!-- compiling JSP pages? [default work directory --> |
241 | 247 | <!-- for the current web application] --> |
242 | | - <!-- This option is ignored when running under a --> |
243 | | - <!-- SecurityManager. --> |
244 | 248 | <!-- --> |
245 | 249 | <!-- suppressSmap Should the generation of SMAP info for JSR45 --> |
246 | 250 | <!-- debugging be suppressed? [false] --> |
|
363 | 367 | <!-- the arguments to the OS. See the CGI How-To --> |
364 | 368 | <!-- for more details. The default varies by --> |
365 | 369 | <!-- platform. --> |
366 | | - <!-- Windows: [[a-zA-Z0-9\Q-_.\\/:\E]+] --> |
| 370 | + <!-- Windows: [[\w\Q-.\\/:\E]+] --> |
367 | 371 | <!-- Others: [.*] --> |
368 | 372 | <!-- Note that internally the CGI Servlet treats --> |
369 | 373 | <!-- [.*] as a special case to improve performance --> |
|
374 | 378 | <!-- command line arguments must match else the --> |
375 | 379 | <!-- request will be rejected. The default matches --> |
376 | 380 | <!-- the allowed values defined by RFC3875. --> |
377 | | - <!-- [[a-zA-Z0-9\Q%;/?:@&,$-_.!~*'()\E]+] --> |
| 381 | + <!-- [[\w\Q%;/?:@&,$-.!~*'()\E]+] --> |
378 | 382 | <!-- --> |
379 | 383 | <!-- enableCmdLineArguments --> |
380 | 384 | <!-- Are command line parameters generated from --> |
|
580 | 584 | </filter> |
581 | 585 | --> |
582 | 586 |
|
583 | | - <!-- A filter that triggers request parameters parsing and rejects the --> |
584 | | - <!-- request if some parameters were skipped because of parsing errors or --> |
585 | | - <!-- request size limitations. --> |
586 | | -<!-- |
587 | | - <filter> |
588 | | - <filter-name>failedRequestFilter</filter-name> |
589 | | - <filter-class> |
590 | | - org.apache.catalina.filters.FailedRequestFilter |
591 | | - </filter-class> |
592 | | - <async-supported>true</async-supported> |
593 | | - </filter> |
594 | | ---> |
595 | | - |
596 | | - |
597 | 587 | <!-- NOTE: An SSI Servlet is also available as an alternative SSI --> |
598 | 588 | <!-- implementation. Use either the Servlet or the Filter but NOT both. --> |
599 | 589 | <!-- --> |
|
671 | 661 | </filter-mapping> |
672 | 662 | --> |
673 | 663 |
|
674 | | - <!-- The mapping for the Failed Request Filter --> |
675 | | -<!-- |
676 | | - <filter-mapping> |
677 | | - <filter-name>failedRequestFilter</filter-name> |
678 | | - <url-pattern>/*</url-pattern> |
679 | | - </filter-mapping> |
680 | | ---> |
681 | | - |
682 | 664 | <!-- The mapping for the SSI Filter --> |
683 | 665 | <!-- |
684 | 666 | <filter-mapping> |
|
901 | 883 | <extension>avi</extension> |
902 | 884 | <mime-type>video/x-msvideo</mime-type> |
903 | 885 | </mime-mapping> |
| 886 | + <mime-mapping> |
| 887 | + <extension>avif</extension> |
| 888 | + <mime-type>image/avif</mime-type> |
| 889 | + </mime-mapping> |
904 | 890 | <mime-mapping> |
905 | 891 | <extension>avx</extension> |
906 | 892 | <mime-type>video/x-rad-screenplay</mime-type> |
|
1829 | 1815 | <extension>ggb</extension> |
1830 | 1816 | <mime-type>application/vnd.geogebra.file</mime-type> |
1831 | 1817 | </mime-mapping> |
| 1818 | + <mime-mapping> |
| 1819 | + <extension>ggs</extension> |
| 1820 | + <mime-type>application/vnd.geogebra.slides</mime-type> |
| 1821 | + </mime-mapping> |
1832 | 1822 | <mime-mapping> |
1833 | 1823 | <extension>ggt</extension> |
1834 | 1824 | <mime-type>application/vnd.geogebra.tool</mime-type> |
|
2183 | 2173 | </mime-mapping> |
2184 | 2174 | <mime-mapping> |
2185 | 2175 | <extension>js</extension> |
2186 | | - <mime-type>application/javascript</mime-type> |
| 2176 | + <mime-type>text/javascript</mime-type> |
2187 | 2177 | </mime-mapping> |
2188 | 2178 | <mime-mapping> |
2189 | 2179 | <extension>jsf</extension> |
|
2201 | 2191 | <extension>jspf</extension> |
2202 | 2192 | <mime-type>text/plain</mime-type> |
2203 | 2193 | </mime-mapping> |
| 2194 | + <mime-mapping> |
| 2195 | + <extension>jxl</extension> |
| 2196 | + <mime-type>image/jxl</mime-type> |
| 2197 | + </mime-mapping> |
2204 | 2198 | <mime-mapping> |
2205 | 2199 | <extension>kar</extension> |
2206 | 2200 | <mime-type>audio/midi</mime-type> |
|
2369 | 2363 | <extension>m2a</extension> |
2370 | 2364 | <mime-type>audio/mpeg</mime-type> |
2371 | 2365 | </mime-mapping> |
| 2366 | + <mime-mapping> |
| 2367 | + <extension>m2t</extension> |
| 2368 | + <mime-type>video/mp2t</mime-type> |
| 2369 | + </mime-mapping> |
| 2370 | + <mime-mapping> |
| 2371 | + <extension>m2ts</extension> |
| 2372 | + <mime-type>video/mp2t</mime-type> |
| 2373 | + </mime-mapping> |
2372 | 2374 | <mime-mapping> |
2373 | 2375 | <extension>m2v</extension> |
2374 | 2376 | <mime-type>video/mpeg</mime-type> |
|
2533 | 2535 | <extension>mjp2</extension> |
2534 | 2536 | <mime-type>video/mj2</mime-type> |
2535 | 2537 | </mime-mapping> |
| 2538 | + <mime-mapping> |
| 2539 | + <extension>mjs</extension> |
| 2540 | + <mime-type>text/javascript</mime-type> |
| 2541 | + </mime-mapping> |
2536 | 2542 | <mime-mapping> |
2537 | 2543 | <extension>mk3d</extension> |
2538 | 2544 | <mime-type>video/x-matroska</mime-type> |
|
2735 | 2741 | </mime-mapping> |
2736 | 2742 | <mime-mapping> |
2737 | 2743 | <extension>mts</extension> |
2738 | | - <mime-type>model/vnd.mts</mime-type> |
| 2744 | + <mime-type>video/mp2t</mime-type> |
2739 | 2745 | </mime-mapping> |
2740 | 2746 | <mime-mapping> |
2741 | 2747 | <extension>mus</extension> |
|
2971 | 2977 | <extension>oprc</extension> |
2972 | 2978 | <mime-type>application/vnd.palm</mime-type> |
2973 | 2979 | </mime-mapping> |
| 2980 | + <mime-mapping> |
| 2981 | + <extension>opus</extension> |
| 2982 | + <mime-type>audio/ogg</mime-type> |
| 2983 | + </mime-mapping> |
2974 | 2984 | <mime-mapping> |
2975 | 2985 | <extension>org</extension> |
2976 | 2986 | <mime-type>application/vnd.lotus-organizer</mime-type> |
|
3770 | 3780 | <extension>sql</extension> |
3771 | 3781 | <mime-type>application/x-sql</mime-type> |
3772 | 3782 | </mime-mapping> |
| 3783 | + <mime-mapping> |
| 3784 | + <extension>sqlite</extension> |
| 3785 | + <mime-type>application/vnd.sqlite3</mime-type> |
| 3786 | + </mime-mapping> |
| 3787 | + <mime-mapping> |
| 3788 | + <extension>sqlite3</extension> |
| 3789 | + <mime-type>application/vnd.sqlite3</mime-type> |
| 3790 | + </mime-mapping> |
3773 | 3791 | <mime-mapping> |
3774 | 3792 | <extension>src</extension> |
3775 | 3793 | <mime-type>application/x-wais-source</mime-type> |
|
4018 | 4036 | <extension>trm</extension> |
4019 | 4037 | <mime-type>application/x-msterminal</mime-type> |
4020 | 4038 | </mime-mapping> |
| 4039 | + <mime-mapping> |
| 4040 | + <extension>ts</extension> |
| 4041 | + <mime-type>video/mp2t</mime-type> |
| 4042 | + </mime-mapping> |
4021 | 4043 | <mime-mapping> |
4022 | 4044 | <extension>tsd</extension> |
4023 | 4045 | <mime-type>application/timestamped-data</mime-type> |
|
4788 | 4810 | <!-- If you define welcome files in your own application's web.xml --> |
4789 | 4811 | <!-- deployment descriptor, that list *replaces* the list configured --> |
4790 | 4812 | <!-- here, so be sure to include any of the default values that you wish --> |
4791 | | - <!-- to use within your application. --> |
| 4813 | + <!-- to use within your application. --> |
4792 | 4814 |
|
4793 | 4815 | <welcome-file-list> |
4794 | 4816 | <welcome-file>index.html</welcome-file> |
4795 | 4817 | <welcome-file>index.htm</welcome-file> |
4796 | 4818 | <welcome-file>index.jsp</welcome-file> |
4797 | | - <welcome-file>redirect.html</welcome-file> |
4798 | 4819 | </welcome-file-list> |
4799 | 4820 |
|
4800 | 4821 | </web-app> |
0 commit comments