• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP & Servlet Version

 
Pankaj Patel
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All.
This post might be redundant.

I am using Tomcat5.0. Now have two question regarding this.
Question 1) What is the version of JSP i m using? How do i know that?
Question 2) How do i know the version of Servlet? How do i change that?


And one more, how do i know the latest version supported by Tomcat 5.0.



Thanks & Regards,
Pankaj Patel.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This page on the Tomcat web site describes which servlet/JSP version is supported by which TC version.

I'm not sure what you mean by "How do i change that?". If you want to use a newer version of the servlet API, install the corresponding TC version.
 
Amit Y Desai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can know version of servlet from web.xml file...check out weather its writen there as 2.3/2.4......you can change there only...

for jsp you need specific jar file...for jsp 1.x its different and for jsp 2.x its different....just replacing the jar file with new one will work..

still refer to docs for more spefic details
 
siddharth das
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please tell me how to know which servlet and jsp version ..I am using.
I was trying to see in web.xml, but could not find.
can you please tell me the path of web.xml.
With Regards,
Siddharth Das
 
Punit Singh
Ranch Hand
Posts: 952
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think for Servlet, you can see any web.xml file. find "version=2.x" in <web-app ...... version="2.x"> tag.
You can see at tomcat/conf/web.xml.

Link given by Ulf also shows which tomcat supports which version of servlet and jsp.
 
ankit kumar
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think one more method is that start your tomcat type URL "http://localhost:8080" you will get the version using by your server
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic