You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Seth Ladd <se...@ehawaii.gov> on 2004/06/18 20:28:33 UTC

running error page through filter?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm having a difficult time running Tomcat managed error-pages through a
filter.  I'm hoping someone might be able to lend a tip.  I've been
reassured that this is not a bug, so it gives me hope this is possible. :)

from web.xml:
<filter-mapping>
	<filter-name>sitemesh</filter-name>
	<url-pattern>/*</url-pattern>
	<dispatcher>FORWARD</dispatcher> <!-- specifically handles login pages -->
	<dispatcher>REQUEST</dispatcher>
	<dispatcher>ERROR</dispatcher>
</filter-mapping>

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

I've placed debug logic in the sitemesh filter to print out when it gets
a request, and I don't receive any print out when the error page is
displayed.  So I'm fairly certain the filter is not being run.

Any other configuration items required to wrap an error in a filter?

Thanks very much!  Your help is greatly appreciated,
Seth

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFA0zRRKZsFSwtW+wIRAvPXAJ9r++ebUZs78jh68963UVskC1d16QCfTCRx
3Wj8dBXYeErS2KELrTn6pdo=
=zc5j
-----END PGP SIGNATURE-----

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