Problem With Solutions

Something Different In Linux

Home » Tomcat » How to check JSP and Tomcat version ?

How to check JSP and Tomcat version ?

Posted by Rishikesh Vispute Categories: Tomcat

How to check JSP and Tomcat version ?

You can easily check the JSP version. You need to create test.jsp page under your account and add the following code into that file and access the test.jsp page by using browser ” http://domainname/test.jsp ” then it shows the tomcat version ,JSP version and servlet version.

==================
Tomcat Version : <%= application.getServerInfo() %><br>

Servlet Specification Version : <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %> <br>

JSP version : <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br>
========================

Done

When you have access  the URL  http://domainname/test.jsp Then  output is  as follows

==============

Tomcat Version : Apache Tomcat/5.5.25
Servlet Specification Version : 2.4
JSP version: 2.0

==============


Optimized by SEO Ultimate