Win a copy of Functional Reactive Programming this week in the Other Languages 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