Oops!
An error has occurred Information about the problem has been logged and will be handled by administrators as soon as possible If you would like to send further information, please contact support.
The page doesn't do anything fancy It apologetically informs a user that the site has failed to function correctly Additionally, an email address is provided in case the user wishes to communicate further about the problem Save error.jsp in the root directory of the jspbook_site Web Application Deploy the page as the site's default error page by adding Listing 15-36 to web.xml Listing 15-36 Setting error.jsp as the Site's Default Error Page java.lang.Throwable /error.jsp Reload the Web Application for the changes to take effect Now we have a failsafe counter to Tomcat's displaying a cryptic stack trace to use Although it should never happen, plan for the worst You can test the page by browsing http://127.0.0.1/jspbook_site/error.jsp The page provides a polite error message and is rendered with the site's implicit header and footer Figure 15-18 provides a browser rendering of the results in English Figure 15-18 Browser Rendering of the Polite Error Page ... case the user wishes to communicate further about the problem Save error.jsp in the root directory of the jspbook_site Web Application Deploy the page as the site's default error page by adding Listing 15-36 to web. xml Listing 15-36... should never happen, plan for the worst You can test the page by browsing http://127.0.0.1/jspbook_site/error.jsp The page provides a polite error message and is rendered with the site's implicit header and footer... Setting error.jsp as the Site's Default Error Page java.lang.Throwable /error.jsp Reload the Web Application for the changes to take effect