The servlet and JSP specification versions correspond to the relationship:
Servlet Spec Version |
JSP version |
JSF version |
JAVA EE version |
Servlet2.3 |
JSP1.2, JSP1.1 |
|
j2ee1.3 |
Servlet2.4 |
JSP2.0 |
JSF1.1 |
j2ee1.4 |
Servlet2.5 |
JSP2.1 |
JSF1.2, JSF2.0 |
Java EE5 |
Servlet3.0 |
JSP2.2 |
|
Java EE6 |
SERVLET/JSP specification and JDK version for Tomcat:
servlet/jsp Spec |
Apache Tomcat Version |
Actual Release Revision |
Minimum Java Version |
3.0/2.2 |
7.0.x |
7.0.12 |
1.6 |
2.5/2.1 |
6.0.x |
6.0.32 |
1.5 |
2.4/2.0 |
5.5.x |
5.5.33 |
1.4 |
2.3/1.2 |
4.1.x (archived) |
4.1.40 (archived) |
1.3 |
2.2/1.1 |
3.3.x (archived) |
3.3.2 (archived) |
1.1 |
Apache official version of the declaration: http://tomcat.apache.org/whichversion.html
How to look at your own Java Web project JSP and servlet versions
My version of Tomcat is 7.0.26
Method: Open Tomcat/lib, find Jsp-api.jar and Servlet-api.jar. Unzip these two files to find the Manifest.mf file under Meta-inf. Open with Notepad or a editplus class of software.
My JSP version is:
manifest-version:1.0
Ant-version:apache Ant 1.8.2
CREATED-BY:1.6.0_29-B11 (Sun Microsystems Inc.)
x-compile-source-jdk:1.6
x-compile-target-jdk:1.6
name:javax/servlet/jsp/
Specification-title:java API for JavaServer Pages
specification-version:2.2
Specification-vendor:sun Microsystems, Inc.
implementation-title:javax.servlet.jsp
implementation-version:2.2.fr
Implementation-vendor:apache Software Foundation
My version of the servlet is:
manifest-version:1.0
Ant-version:apache Ant 1.8.2
CREATED-BY:1.6.0_29-B11 (Sun Microsystems Inc.)
x-compile-source-jdk:1.6
x-compile-target-jdk:1.6
name:javax/servlet/
Specification-title:java API for Servlets
specification-version:3.0
Specification-vendor:sun Microsystems, Inc.
Implementation-title:javax.servlet
implementation-version:3.0.fr
Implementation-vendor:apache Software Foundation
SERVLET,JSP,TOMCAT,JDK corresponding to version relationships, how to view JSP and servlet version information