Section 9.8 of Java Servlet Specification Version 2.3:

A web application may specify that when errors occur, other resources in 
the application are used. These resources are specified in the 
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
- javax.servlet.error.exception
- javax.servlet.error.request_uri

-Tim

Mark O'Driscoll wrote:
> Using the <error-page><error-code> directive in my web.xml, I am redirecting
> errors & exceptions to one error page. I know I can query the exception but
> how do I query the error that may have caused the page to be invoked.
> 
> e.g.
> 
> if I call response.sendError(234), how do I tell in CheckError.jsp that the
> error that cased the page to be invoked was 234 (and any other information).
> I don't want to have to put in a separate directive for each possible error.
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to