Web. XML & Web-fragment.xml (Servlet 2.3, 2.4, 2.5 + 3.0) templates

Source: Internet
Author: User

Transferred from: http://jlcon.iteye.com/blog/890964

Web. XML v2.3

XML code
    1. <? XML version= "1.0" encoding="iso-8859-1"?>
    2. <! DOCTYPE Web-app Public "-//sun Microsystems, INC.//DTD Web Application 2.3//en" "Http://java.sun.com/dtd/web-app_2_3. DTD ">
    3. <Web-app>
    4. </Web-app>

Web. XML v2.4

XML code
  1. <? XML version= "1.0" encoding="UTF-8"?>
  2. <Web-app id="Webapp_9" version="2.4" xmlns="HTTP://JAVA.SUN.COM/XML/NS/J2EE"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemalocation="Http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
  5. </Web-app>

Web. XML v2.5

XML code
  1. <? XML version= "1.0" encoding="UTF-8"?>
  2. <Web-app xmlns="Http://java.sun.com/xml/ns/javaee"
  3. xmlns:xsi="Http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemalocation="Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  5. version="2.5">
  6. </Web-app>

Web. Xml v3.0

XML code
  1. <? XML version= "1.0" encoding="UTF-8"?>
  2. <Web-app
  3. version="3.0"
  4. xmlns="Http://java.sun.com/xml/ns/javaee"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xsi:schemalocation="Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd ">
  7. </Web-app>

Web-fragment.xml

XML code
  1. <web-fragment xmlns="Http://java.sun.com/xml/ns/javaee"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemalocation= "
  4. Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd " version=" 3.0 " >
  5. </web-fragment>

Web. XML & Web-fragment.xml (Servlet 2.3, 2.4, 2.5 + 3.0) templates

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.