Here's a snippet of JSP code that displays the Servlet API version, the JSP version, the JRE version and also the name and version of the servlet container (taken from a
Saloon post by Bauke Scholtz).
Server info: <%= application.getServerInfo() %><br>
Servlet version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
JSP version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br>
Java version: <%= System.getProperty("java.version") %><br>
JspFaq ServletsFaq