8.4. Multiple error pages

The Servlet API V2.2 defines facilities to let you specify error handling for each Web application. You can specify:

  1. A default error page, and

  2. Specific error pages for error conditions, for example an error page to be displayed when a particular status code is produced, or a particular Java exception is thrown.

8.4.1. Properties introduction

You may configure the error pages in the WebSphere Administrative Console on the Advanced tab of the Web Application properties panel. Default Error Page is a field and Error Pages is a list.

Both properties should specify the fully qualified URL of the Web page to display when in the following cases:

  • sendError()

  • sendRedirect()

  • Uncaught exception thrown by servlet

The Web page should ...

Get WebSphere V3.5 Handbook 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.