> From: Nathan Potter [mailto:n...@opendap.org]
> Subject: Re: Tomcat returns HTTP status of 200 when
> HttpServletResponse.sendError() called.
>
> Is sendError() using a redirect?

No, more like an internal forward.

> Is there a way to set the value of the <location> element
> in the error-page declaration so that tomcat just grabs
> the file from the context directory?

Yes - don't give it a URL pattern that matches the mapping for any of your 
servlets.

> So what does "the container returns the resource as indicated by the
> location entry"  mean for tomcat?

Haven't checked the code yet, but I believe it treats it like a GET for the 
resource, so it's subject to whatever servlet mapping you have in place.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to