您的位置:首页 > Web前端 > JavaScript

如何查看JSP和Servlet版本

2012-04-05 14:34 369 查看
我们在java web开发的过程中,有时在资料上可能会提到环境所要支持的JSP,Servlet版本。如果版本低就可能出现测试错误。

方法:打开tomcat的common\lib 目录下,有两个JAR文件: jsp-api.jar servlet-api.jar 。如果没有,那可能是你没有添加进来。解压这两个文件,用记事本分别打开META-INF下的MAINMEFT.MF文件。

我的Servlet版本是:Manifest-Version: 1.0

Ant-Version: Apache Ant 1.6.5

Created-By: 1.4.2_12-b03 (Sun Microsystems Inc.)

Name: javax/servlet/

Specification-Title: Java API for Servlets

Specification-Version: 2.4

Specification-Vendor: Sun Microsystems, Inc.

Implementation-Title: javax.servlet

Implementation-Version: 2.4.public_draft

Implementation-Vendor: Apache Software Foundation

我的JSP版本是:Manifest-Version: 1.0

Ant-Version: Apache Ant 1.6.5

Created-By: 1.4.2_12-b03 (Sun Microsystems Inc.)

Name: javax/servlet/jsp/

Specification-Title: Java API for JavaServer Pages

Specification-Version: 2.0

Specification-Vendor: Sun Microsystems, Inc.

Implementation-Title: javax.servlet.jsp

Implementation-Version: 2.0.public_draft

Implementation-Vendor: Apache Software Foundation
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: