You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/09/09 22:20:56 UTC
DO NOT REPLY [Bug 12456] New: -
RequestDispatcher for ERROR value does not get filtered
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12456>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12456
RequestDispatcher for ERROR value does not get filtered
Summary: RequestDispatcher for ERROR value does not get filtered
Product: Tomcat 5
Version: Unknown
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jian.cai@sun.com
A servlet (reqServlet.class) throws a 404 error page using:
resp.sendError(404, "Error from ReqDispacherServlet");
That error page has been mapped with a filter with
<dispatcher>ERROR</dispatcher>.
<filter-mapping>
<filter-name>DispatcherFilterErr</filter-name>
<url-pattern>/error</url-pattern>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
The error page is set as :
<error-page>
<error-code>
404
</error-code>
<location>
/error
</location>
</error-page>
However, a call to reqServlet did not activate the filter (DispatchFilterErr).
SRV.6.2.5 states: the Filter will be applied to the request "only when the
request is being processed with the error page mechanism specified in SRV9.9 to
an error resource matching the <url-pattern>. This is indicated by a
<dispatcher> element with the value ERROR."
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>