tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.
Date Wed, 14 Jan 2009 21:38:27 GMT
> From: Nathan Potter [mailto:ndp@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message