打开myeclipse,选择window->最后一个选项(首选项)会看到如截图对话框.在搜索框键入server 找到myeclipse Tomcat 对话框的右侧则是tomcat的路径
在java web开发中,查看servlet和jsp版本方法:
1、打开tomcat的安装目录,定位到common\lib目录,此目录下包含jsp-api.jar,servlet-api.jar[如果没有可能是没添加进来];
2、解压这两个文件,分别用记事本打开解压目录下的META-INF\MAINMEFT.MF文件;
3、servlet的版本信息:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 1.5.0_15-b04 (Sun Microsystems Inc.)
X-Compile-Source-JDK: 1.5
X-Compile-Target-JDK: 1.5
Name: javax/servlet/
Specification-Title: Java API for Servlets
Specification-Version: 2.5
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Title: javax.servlet
Implementation-Version: 2.5.MR2
Implementation-Vendor: Apache Software Foundation
4、jsp的版本信息:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 1.5.0_15-b04 (Sun Microsystems Inc.)
X-Compile-Source-JDK: 1.5
X-Compile-Target-JDK: 1.5
Name: javax/servlet/jsp/
Specification-Title: Java API for JavaServer Pages
Specification-Version: 2.1
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Title: javax.servlet.jsp
Implementation-Version: 2.1.FR
Implementation-Vendor: Apache Software Foundation
步骤3、4中的红字部分即为版本。