You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/09/09 09:10:07 UTC

[tomcat] 01/02: Add support for Servlet 5 to WebXml.toString()

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 9e4ab0bc5e44d898445800aed4ac0a69d3f95b66
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Sep 9 10:05:10 2021 +0100

    Add support for Servlet 5 to WebXml.toString()
---
 java/org/apache/tomcat/util/descriptor/web/WebXml.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/java/org/apache/tomcat/util/descriptor/web/WebXml.java b/java/org/apache/tomcat/util/descriptor/web/WebXml.java
index 434e630..62b5ed7 100644
--- a/java/org/apache/tomcat/util/descriptor/web/WebXml.java
+++ b/java/org/apache/tomcat/util/descriptor/web/WebXml.java
@@ -752,6 +752,9 @@ public class WebXml extends XmlEncodingBase implements DocumentProperties.Charse
             } else if ("4.0".equals(version)) {
                 javaeeNamespace = XmlIdentifiers.JAVAEE_8_NS;
                 webXmlSchemaLocation = XmlIdentifiers.WEB_40_XSD;
+            } else if ("5.0".equals(version)) {
+                javaeeNamespace = XmlIdentifiers.JAKARTAEE_9_NS;
+                webXmlSchemaLocation = XmlIdentifiers.WEB_50_XSD;
             }
             sb.append("<web-app xmlns=\"");
             sb.append(javaeeNamespace);

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org