Servlet버전에 따른 web.xml파일의 스키마 헤더
* 2.4 부터는 DTD(Document Type Definition)를 사용하지 않고 xsd(XML Schema Definition)로 변경되었네요
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
<?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"?>
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">
Servlet 3.0
<?xml version="1.0" encoding="UTF-8"?>
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">
Servlet 3.1
<?xml version="1.0" encoding="UTF-8"?>
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">
Servlet 4.0
<?xml version="1.0" encoding="UTF-8"?>
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">
Tomcat 버전별 서블릿 지원 표
Tomcat version | Servlet version | JSP version | Web socket version | Java minimum version |
11.0 | 6.1 | 4.0 | TBD | 11 |
10.1 | 6.0 | 3.1 | 2.1 | 11 |
10.0 | 5.0 | 3.0 | 2.0 | 8 |
9.0 | 4.0 | 2.4 | 1.1 | 8 |
8.0 | 3.1 | 2.3 | 1.1 | 7 |
7.0 | 3.0 | 2.2 | 1.1 | 6 |
6.0 | 2.5 | 2.1 | - | 5 |
5.5 | 2.4 | 2.0 | - | 1.4 |
4.1 | 2.3 | 1.2 | - | 1.3 |
3.3 | 2.2 | 1.1 | - | 1.1 |
'메모모음' 카테고리의 다른 글
윈도우PC에서 PORT로 프로그램 찾아 죽이기 (0) | 2024.12.16 |
---|---|
TOMCAT 자주 보는 오류 대응 (0) | 2024.09.29 |
maven 설정 - dynamic web module version 4.0 (0) | 2023.01.11 |