Transferred from: http://jlcon.iteye.com/blog/890964
Web. XML v2.3
XML code
- <? XML version= "1.0" encoding="iso-8859-1"?>
- <! DOCTYPE Web-app Public "-//sun Microsystems, INC.//DTD Web Application 2.3//en" "Http://java.sun.com/dtd/web-app_2_3. DTD ">
- <Web-app>
- </Web-app>
Web. XML v2.4
XML code
- <? XML version= "1.0" encoding="UTF-8"?>
- <Web-app id="Webapp_9" version="2.4" xmlns="HTTP://JAVA.SUN.COM/XML/NS/J2EE"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemalocation="Http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
- </Web-app>
Web. XML v2.5
XML code
- <? XML version= "1.0" encoding="UTF-8"?>
- <Web-app xmlns="Http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="Http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemalocation="Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
- version="2.5">
- </Web-app>
Web. Xml v3.0
XML code
- <? XML version= "1.0" encoding="UTF-8"?>
- <Web-app
- version="3.0"
- xmlns="Http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemalocation="Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd ">
- </Web-app>
Web-fragment.xml
XML code
- <web-fragment xmlns="Http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemalocation= "
- Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd " version=" 3.0 " >
- </web-fragment>
Web. XML & Web-fragment.xml (Servlet 2.3, 2.4, 2.5 + 3.0) templates