servlet2.5
<?XML version= "1.0" encoding= "UTF-8"?><Web-appversion= "2.5"xmlns= "Http://java.sun.com/xml/ns/javaee"Xmlns:xml= "Http://www.w3.org/XML/1998/namespace"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"></Web-app>
servlet3.0
<? 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/ Java ee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd "> </ Web-app>
<? XML version= "1.0" encoding= "UTF-8" ?> < web-fragment 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/ Java ee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd "> </ Web-fragment>
Header information for Web. XML with different servlet versions