Error Pages, Comments, and Deployment Descriptors

An earlier section discussed how to include the implicit exception object for JSP pages. This object is provided to a JSP error page, using the following page directive:

<%@ page isErrorPage="true" %>

You can also provide a specific JSP error page containing your error text.

JSP Error Page

The following is a complete JSP error page similar to the one used in the WebAuction application. The error page accesses the implicit exception object and prints out a stack trace of the error:

 <%@ page isErrorPage="true" %> <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <title>WebLogic Server WebAuction Error</title> </head> <body text="#000000" bgcolor="#FFFFFF" link="#0000EE" ...

Get J2EE™ Applications and BEA™ WebLogic Server™ 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.