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

  • 相关阅读:
    常用的汇编指令与技巧
    汇编调用c函数为什么要设置栈
    lp2356
    String函数的总结
    2019-5-22训练
    STL——substr
    STL 反转函数 (reverse() )
    2019-5-15训练——深搜
    高精度加法
    八皇后题解
  • 原文地址:https://www.cnblogs.com/m3Lee/p/3837352.html
Copyright © 2011-2022 走看看