JSP Request Time Errors

The second type of JSP error occurs during request time. These errors are runtime errors that can occur in either the body of the JSP page or in some other object that is called from the body of the JSP page.

Request time errors result in an exception being thrown. These exceptions can be caught and appropriately handled in the body of the calling JSP, which would be the end of the error. Those exceptions that are not caught result in the forwarding of the client request, including the uncaught exception, to the error page specified by the offending JSP. The following sections describe, in detail, how to define and implement JSP error pages.

Creating a JSP Error Page

To create a JSP error page, you need to create a basic ...

Get Pure Java Server Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.