How can I get the version of the Servlet API that is being used by a servlet/JSP engine?
[Alex Chaffee adds:]
So, for example, JSWDK 1.0.1, which supports the Servlets spec 2.1, would return "2" for getMajorVersion() and "1" for getMinorVersion().
Major: <%=application.getMajorVersion()%> Minor: <%=application.getMinorVersion()%>
Jason Hunter's com.oreilly.servlet package has some code for determining this in an allegedly more robust manner.