我们在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

原文地址:http://blog.csdn.net/ma1kong/article/details/5118832

相关文章:

  • 2021-11-04
  • 2021-08-15
  • 2021-08-06
  • 2021-10-19
  • 2021-11-08
  • 2021-11-17
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案