Tagged: servlet-error-pages

Tomcat 7: Error pages for exceptions and error codes

You can specify an error page in your web folder for either an exception or a standard error code.

The below makes error404.html be shown each time an array out of bounds error occurs.

       <!-- <error-code>404</error-code> -->
servlet servlet-error-pages

Page 1 of 1