O'Reilly logo

J2EE™ Applications and BEA™ WebLogic Server™ by Sandra L. Emerson, Rob Woollen, Michael Girdley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required