How to know the version of the JSP that is in a project

1

I have a Java project and would like to know which version of JSP is being used in this project. Example, I have an old project, how do I get this information?

    
asked by anonymous 24.11.2015 / 11:24

1 answer

2

Create a JSP and put the following code there:

Servlet container version:

<%= application.getMajorVersion() %>.<%= application.getMinorVersion() %>

JSP version:

<%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %>
    
25.11.2015 / 04:35