이클립스에서 메이블 프로젝트로 를 생성하면 web.xml 이 서블릿 2.3 버전으로 정의가 되더군요...
서블릿 2.5 버전으로 바꿔서 사용 했었는데 이참에 DTD 선언 1정리합니다
Servlet 2.2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
</web-app>
Servlet 2.3
<?xml version="1.0" encoding="UTF-8"?>
<!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>
Servlet 2.4
DTD 에서 스키마로 바뀌었습니다.
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="servlet-2_4" 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>
Servlet 2.5
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="servlet-2_5" version="2.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
</web-app>
Servlet 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>
Servlet 3.1
<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>
- Document Type Definition [본문으로]
'Java+' 카테고리의 다른 글
Find class in jar files (0) | 2018.02.19 |
---|---|
Maven Repository for Oracle Library (0) | 2012.12.18 |
<jsp:forward page="url" /><jsp:include /> <%@ include %> (0) | 2010.04.25 |
TortoiseSVN 사용하기 (2) | 2009.11.16 |
썸네일(Thumbnail) 만들기 (1) | 2009.08.09 |
Java2Html (0) | 2009.07.19 |
Jad + JadClipse (6) | 2009.07.11 |
Java with SQLite (1) | 2009.06.29 |
Java Database Connectivity (0) | 2009.02.25 |