Hi all,
I am trying to set my error page for my application. This is what I have in the web.xml file:
<error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>
But whenever a server 500 internal error occurs, Tomcat still displays its own built in error page. How do I override that property to show my error page. My main reason of having my own error page is not to show exceptions to clients but just an error message.
Any help appreciated.
Thanks, Samit
I am trying to set my error page for my application. This is what I have in the web.xml file:
<error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>
But whenever a server 500 internal error occurs, Tomcat still displays its own built in error page. How do I override that property to show my error page. My main reason of having my own error page is not to show exceptions to clients but just an error message.
Any help appreciated.
Thanks, Samit