I have a servlet mapping for a page named
/403.html
I can invoke that URL and get a page as expected.
In my deployment descriptor, I have an error mapping:
<error-page>
<error-code>403</error-code>
<location>/403.html</location>
</error-page>
in my code I have
if (someCondition) {
res.sendError(HttpServletResponse.SC_FORBIDDEN);
return;
}
When this code is hit, my custom page is not displayed. I get a blank
page. No error is thrown by tomcat.
If I change the error-page entry to reference a static HTML page, the
page is displayed as expected.
This looks like a bug to me, but I wanted to run it past tomcat-user
and see what other people think.
--
George Sexton
MH Software, Inc.
303 438-9585
http://www.mhsoftware.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org