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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to