This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat version" Watch "Tomcat version" New topic

Tomcat version

vicky Aggarwal
Ranch Hand

Joined: May 15, 2009
Posts: 40

I have an old application, which runs on a embedded tomcat.
I want to know version of used Tomcat.
I tried "javax.servlet.ServletContext.getServerInfo" but it was not supported in used server.
Can any body help me to find out server version.

Thanks in advance.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41046
Try running this JSP code: Comment out the parts that do not run :-)

Ping & DNS - my free Android networking tools app
vicky Aggarwal
Ranch Hand

Joined: May 15, 2009
Posts: 40
Thank you for your reply.
I am trying the solution, but if is there any way to same thing using servlets?
It is sorta covered in the JavaRanch Style Guide.
subject: Tomcat version
Similar Threads
tomcat vs. jboss?
where to lookout for console messages while working in notepad?
do not understand compiling a servlet
confused with forwarding request
Tomcat Migration (5.0.28 > 5.5)