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 2004/06/16 20:23:13 UTC

DO NOT REPLY [Bug 29620] New: - Error Pages Aren't Run Through Filters

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29620>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29620

Error Pages Aren't Run Through Filters

           Summary: Error Pages Aren't Run Through Filters
           Product: Tomcat 5
           Version: 5.0.25
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: seth@ehawaii.gov


I have Tomcat configured to display custom error pages on 404 and 500.  I have a
filter that should wrap those error pages.  The filter is not being called when
error page is displayed, though.  I have tried using the REQUEST, FORWARD, and
INCLUDE dispatcher for the filter with no success.  I believe error pages should
be wrapped by filters (if a filter mapping exists for them), but I could be run.

My configurations are below.

Thanks,
Seth

	<filter-mapping>
		<filter-name>sitemesh</filter-name>
		<url-pattern>/WEB-INF/jsp/error404.jsp</url-pattern>
                <!-- trying them all -->
		<dispatcher>FORWARD</dispatcher>
		<dispatcher>REQUEST</dispatcher>
                <dispatcher>INCLUDE</dispatcher>
	</filter-mapping>

	<error-page>
		<error-code>404</error-code>
		<location>/WEB-INF/jsp/error404.jsp</location>
	</error-page>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org