> From: Nathan Potter [mailto:n...@opendap.org]
> Subject: Re: Tomcat returns HTTP status of 200 when
> HttpServletResponse.sendError() called.
>
> I mapped one of my servlets to be the default servlet:
>      <servlet-mapping>
>          <servlet-name>hyrax</servlet-name>
>          <url-pattern>*</url-pattern>
>      </servlet-mapping>
>
> And since it doesn't serve static content like the Tomcat
> DefaultServlet, I'm not seeing the expected behavior for
> the error-page mappings.

If you don't want to rewrite your mappings (and probably program logic), then 
isolate your static content - including error pages - to some particular branch 
of your directory tree and put in a mapping for the existing DefaultServlet to 
handle it.

 - 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