I downloaded a copy of servlet-api.jar from java2s.com. How do I know what version it is? There\'s no reference on the site.
EDIT
Ah. Apo
use the below code snippet :
<%= session.getServletContext().getMajorVersion() %>. <%= session.getServletContext().getMinorVersion() %>