I am using Tomcat 6.33 and I am wondering how can I check if it supports Servlet 3.0 or El 2.2 or not?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check by reading the Tomcat documentation – see the Apache Tomcat Versions page … which lists the versions of the JSP and Servlet specs supported by each major version of Tomcat.
(Answer from the list: Tomcat 6.x supports Servlet 2.5 and JSP/EL 2.1)
If you want to find out the Servlet spec version at runtime, the
ServletContextAPI has methods calledgetMajorVersion()andgetMinorVersion()that should tell you.I also found this recipe for displaying various version numbers using a JSP: