servlet,jsp,tomcat,jdk對應版本關係,如何查看jsp和servlet版本信息

servlet,jsp,tomcat,jdk對應版本關係,如何查看jsp和servlet版本信息

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

原文: http://5563447.blog.51cto.com/5553447/1261520

參考: http://tomcat.apache.org/whichversion.html

分類: JAVA
發佈了9 篇原創文章 · 獲贊 153 · 訪問量 15萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章