標籤:blog http io os ar java for strong sp
我們在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
如何查看JSP和Servlet版本