Adding or removing an error page from a Web application

Error pages are pages that you configure to display in response to specific HTTP error codes. To add or remove an error page from a Web application, add or remove the error page from the web.xml file. To do this using the Web deployment descriptor editor, complete the following steps:

  1. Open the Web perspective and display the Project Explorer.

  2. Expand your project and double click on the Deployment Descriptor icon. The Web deployment descriptor window appears.

  3. Select the Pages tab, and in the Error Pages section, select the Add button to add an error file. To remove an error file, select the file and then select the Remove button.

 

Related concepts

The Web deployment descriptor editor

 

Related tasks

Configuring Web applications using the Web deployment descriptor editor