This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I hide tomcat version?

 
Antonio Goodman
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I hide tomcat version?
If i have exception in my apllication then tomcat shows the version.
How to hide it?


thanks for any reply
 
Scott Dunbar
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would be a bit concerned that you are trying to implement security through obscurity but the key is to have your web application set up correctly. In the event of an error your web app needs to have the web.xml set up. For example:



This tells Tomcat to redirect to /500.html in the event of a 500 error (the most common error when you have an issue with your JSP).
 
Antonio Goodman
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much, Scott.

I think, this solution is that i needed

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic