develog

[web-app spec] servlet, tomcat, java, web.xml version 본문

Dev/Java

[web-app spec] servlet, tomcat, java, web.xml version

냐옴 2013. 7. 25. 18:23

▶ Which Tomcat Version Do I Want

http://tomcat.apache.org/whichversion.html

web.xml 4.0

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
    version="4.0">
</web-app>

web.xml 3.1

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
    version="3.1">
</web-app> 

web.xml 3.0

<?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_3_0.xsd"
    version="3.0">
</web-app>

web.xml 2.5

<?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>

 

 

▶ Tomcat Versions

cwiki.apache.org/confluence/display/TOMCAT/Tomcat+Versions

 

▶ Web Application Specifications

http://wiki.apache.org/tomcat/Specifications

 

▶ web.xml Deployment Descriptor Elements

https://docs.oracle.com/middleware/1221/wls/WBAPP/web_xml.htm#WBAPP503

 

▶ web.xml Deployment Descriptor examples

https://www.mkyong.com/web-development/the-web-xml-deployment-descriptor-examples/

 

'Dev > Java' 카테고리의 다른 글

[java] spring, mybatis config  (0) 2013.08.13
Java EE Documentation  (0) 2013.07.25
servlet, jsp, tomcat, java 버전별 비교  (0) 2013.07.24
REQUIRES_NEW  (0) 2013.07.18
jndi  (0) 2013.07.18
Comments