How to know which servlet and JSP version am I using?

前端 未结 3 1103
青春惊慌失措
青春惊慌失措 2021-01-30 13:45

Can you tell me how to know which servlet and JSP version am I using ? I use NetBeans IDE 7.1.2 for creating Servlets and JSP.

3条回答
  •  故里飘歌
    2021-01-30 14:23

    You can easily check the JSP,SERVER and SERVLET version. Add the following code in your jsp page after that run using any IDE Tools.

    Server Version: <%= application.getServerInfo() %>
    Servlet Version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %> JSP Version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %>

提交回复
热议问题