• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat version

 
vicky Aggarwal
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try running this JSP code: https://www.coderanch.com/how-to/java/WhichVersionAmIRunningOn. Comment out the parts that do not run :-)
 
vicky Aggarwal
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply.
I am trying the solution, but if is there any way to same thing using servlets?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic