Where can I find valid values ​​for the version attribute of the web-app element in web.xml?

A typical web.xml is as follows:

<!DOCTYPE web-app PUBLIC
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<web-app version="2.4">
  <display-name>Archetype Created Web Application</display-name>
</web-app>

How do I know which values ​​are valid for an attribute version <web-app>?

<web-app version="?">

Is it 2.5 or maybe 3.0?

Does anyone know the url using a schema or DTD to validate web.xml? The URL for DTDs of different versions of web applications is different, is there some kind of source where I can see the full list?

//doctype for servlet 2.3
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

//doctype for servlet 2.2
<!DOCTYPE web-app PUBLIC
  "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
+5
source share
3 answers

3.0 ( 2009 .) Wikipedia - 3.0, 2.5, 2.4, 2.3, 2.2, 2.1, 2.0, 1.0. 3.1 .

, , (), URL- http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd , http://java.sun.com/xml/ns/javaee/. http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html, . J2EE .

+2

DTD Java EE

,

  • Servlet 3.1 XML Java EE 7
  • Servlet 3.0 XML XML EE 6
  • Servlet 2.5 XML XML EE 5
  • Servlet 2.4 deployment descriptor J2EE 1.4 XML schema
  • Servlet 2.3 deployment descriptor description DTDs J2EE 1.3 schema
0
source

All Articles