tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12456] New: - RequestDispatcher for ERROR value does not get filtered
Date Mon, 09 Sep 2002 20:20:56 GMT
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:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message