You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Tim Funk <fu...@joedog.org> on 2004/09/27 15:32:40 UTC
Webapp error pages being invoked on setStatus()
Using 5.0.X
I have the following JSP which sets the status to not found:
==========
<%
response.setStatus(response.SC_NOT_FOUND);
%>
<html>
<head><title>oops</title></head>
<body>D'oh</body>
</html>
==========
When I execute the page above, the 404 error handler configured by web.xml is
being invoked. I thought that was only invoked if response.sendError(...) was
to be called (or when an exception is thrown).
Am I missing something?
-Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org