A web application may specify that when errors occur, other resources in the application are used. These resources are specified in the deployment descriptor (see Chapter SRV.13, "Deployment Descriptor"). If the location of the error handler is a servlet or a JSP, the following request attributes can be set:
These attributes allow the servlet to generate specialized content depending on the status code, exception type, and message of the error. |