Can you tell me how to know which servlet and JSP version am I using ? I use NetBeans IDE 7.1.2 for creating Servlets and JSP.
You can get the details programatically using ServletContext #getMajorVersion() and #getMinorVersion().
For knowing the JSP version corresponding to the Servlet, you can get details from this Tomcat page
Below is the summary,
Servlet 2.5 uses JSP 2.1
Servlet 2.4 uses JSP 2.0
Servlet 2.3 uses JSP 1.2
Servlet 2.2 uses JSP 1.1
Servlet 2.1 uses JSP 1.0