zoukankan      html  css  js  c++  java
  • java web开发中,如何查看JSP和Servlet版本 (转)

    原文出处:http://blog.163.com/qiu_yin_good/blog/static/16732934920123277481492/

    在看《struts2权威指南》的时候,书上很多处都提到环境要支持的JSP,Servlet版本。如果版本低,会出现异常。或者需要修改web.xml等。

    现在记录下如何看自己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

  • 相关阅读:
    HDU 1425:sort
    HDU 1021:Fibonacci Again
    HDU 2035:人见人爱A^B
    HDU 1061:Rightmost Digit
    HDU 1005:Number Sequence
    HDU 1008:Elevator
    HDU 1004:Let the Balloon Rise
    HDU 2018:母牛的故事
    java推荐书籍及下载
    VC6.0 快捷键
  • 原文地址:https://www.cnblogs.com/m3Lee/p/3837352.html
Copyright © 2011-2022 走看看