Servlet和JSP规范版本对应关系:
Servlet规范版本 | JSP版本 | JSF版本 | JAVA EE版本 |
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 |
Tomcat所对应的Servlet/JSP规范和JDK版本:
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官方对各版本的申明:http://tomcat.apache.org/whichversion.html
如何看自己java web工程的JSP和servlet版本
我的tomcat版本是7.0.26
方法:打开tomcat/lib,找到jsp-api.jar和servlet-api.jar。解压这两个文件,找到META-INF下的MANIFEST.MF文件。用记事本或者EditPlus一类的软件打开。
我的JSP版本是:
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
我的servlet版本是:
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对应版本关系,如何查看jsp和servlet版本信息
原文:http://www.cnblogs.com/vaer/p/4338091.html