This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 0b36542a5175a793c31b34357264c5eb4ef556ce 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org