SRV.9.8 Error Handling


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:

  • javax.servlet.error.status_code

  • javax.servlet.error.exception_type

  • javax.servlet.error.message

These attributes allow the servlet to generate specialized content depending on the status code, exception type, and message of the error.



Java 2 Platform, Enterprise Edition. Platform and Component Specifications
Java 2 Platform, Enterprise Edition: Platform and Component Specifications
ISBN: 0201704560
EAN: 2147483647
Year: 2000
Pages: 399

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net