Show TOC Start of Content Area

Procedure documentation Configuring Custom Error Response Pages  Locate the document in its SAP Library structure

Use

You can configure your Web Container to respond to the client with custom error pages when an error occurs (either HTTP error or a Java exception in dynamic components execution). To do that, you have to map the error page either to a particular HTTP response status code, or to a Java exception in the web.xml descriptor of your Web application.

Procedure

On the the web.xml screen, proceed as follows:

...

       1.      Open the Others screen.

       2.      Select Error-Pages and then choose Add to add a new error page.

       3.      Enter the location of the error page file in the Location field.

       4.      If you want to:

¡        Map the error page to an HTTP response status code, select Error Code and enter the code number in the field.

¡        Map the error page to a Java exception, select Exception Type and enter the fully qualified name of the exception class into the field.

 

End of Content Area