How to know which version of JSP is in a project

Asked

Viewed 551 times

1

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

  • http://www.guj.com.br/java/14410-versao-do-jsp-e-servlet---como-saber

  • There must be an option in the project property that shows this, already looked there? But I will point out that this link helps. http://www.guj.com.br/java/14410-versao-do-jsp-e-servlet---como-saber

  • It all depends. When you say project, Are you saying an Eclipse, Netbeans, Intellij, Maven project? Or would it be a system running on an application server? It is not uncommon for projects whose build configuration uses one version of the API and another in the execution environment. Take note of this and, if possible, edit your question and add more details about your situation.

  • It’s an Eclipse project with Ant

1 answer

2


Create a JSP and put the following code there:

Version container Servlet:

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

JSP version:

<%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.