Check Tomcat,Java,JSP And Servlet Version Online

If you  recently  installed Apache-Tomcat on your system and wants to check  the Java, JSP , Servlet and Tomcat versions then just put the below code in .jsp file ::

 

<html>

Apache-Tomcat Version : <%=getServletConfig().getServletContext().getServerInfo()%> <br>

Servlet Version : <%= session.getServletContext().getMajorVersion() %>.<%= session.getServletContext().getMinorVersion() %><br>

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

Java Version : <%= System.getProperty("java.version")%><br>

</html> 

And now you can access the above information online as http://www.domain.com/info.jsp .