As I sometimes need these, I have compiled a list of the valid headers of the Web. XML and Web-fragment.xml file for Servle T version 2.3 until 3.0.
Maybe you find them as handy as I do.
Web. XML v2.3
123456 |
<?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
123456 |
<?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/ Java ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd "> </web-app> |
Web. XML v2.5
1234567891011 |
<?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
123456789 |
<?xml version= "1.0" encoding= "UTF-8"?> <web-app version= "3.0" xmlns= "http://java.sun.com/xml/ns/ Java ee " 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:
123456 |
<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> |
http://dominikdorn.com/2010/03/web-xml-web-fragment-xml-2-3-2-4-2-5-3-0/
Http://stackoverflow.com/questions/17563756/element-listener-class-not-allowed-in-my-web-xml
File Templates for Web. XML & Web-fragment.xml (Servlet 2.3, 2.4, 2.5 + 3.0)