JSP/Servlet Version
Servlet Version | JSP Version | JSTL Version | Java EE Version |
---|---|---|---|
2.5 | 2.1 | 1.2 | 5 |
2.4 | 2.0 | 1.1 | 1.4 |
2.3 | 1.2 | 1.0 | 1.3 |
2.2 | 1.1 | 1.0 | 1.2 |
In order to use Servlet 2.2, the web.xml needs to require it:
<!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>
...
For Servlet 2.3, the web.xml starts with:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD
Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
...
For Servlet 2.4, the web.xml starts with:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app 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"
version="2.4">
...
For Servlet 2.5, the web.xml starts with:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xsi="http://www.w3.org/2001/XMLSchema-instance"
schemalocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
version="2.5">
...
No comments:
Post a Comment