5.8.1 Overview of error page customization
The methods to customize the error pages include: Customization with the <error-page> tag of web.xml specified in Servlet specifications and customization with the Web server functionality. However, the error page used when the redirector returns an error such as when the communication between the redirector and Web container fails cannot be customized with the method of using the <error-page> tag of web.xml. Use the Web server functionality to customize the error page when the redirector returns an error. The following table describes the error locations and the corresponding error page customization methods:
Error location |
Customization method |
|
---|---|---|
Method of using the Web server functionality |
Method of using the <error-page> tag of web.xml |
|
Web container |
Y |
Y |
Redirector |
Y |
-- |
- Legend:
-
Y: Can be customized
--: Cannot be customized
For details on the conditions for occurrence of an error in the Web container, and the corresponding error status codes, see Appendix C Error Status Code.