Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

running error page through filter?

Seth Ladd

2004-06-18


-----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@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.