tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Execute method each request
Date Thu, 26 Jul 2007 19:03:35 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Trumml,

Trumml wrote:
> I want to execute a method each time a request is performed to my jsf site.
> The implementation for this request should remain in a jar file which is
> packed into the WAR file under WEB-INF/lib directory.
> I guess there is no solution to do this with a valve, because the class
> (jar) for the valve must remain inside tomcat classpath I guess.

Don't use a valve. Use a Filter. These were designed to be deployed as
part of your application, instead of being provided by Tomcat.

Look at the servlet API for javax.servlet.Filter (it's an interface).
Implementing it is easy: just read the javadoc before you begin and
you'll be good to go.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGqPAH9CaO5/Lv0PARAheAAJ0dRPWqCirlFGuQP2dLgla0PCwYXwCgnMLb
7tDsS/ldmm4hSeB1G9bY3N4=
=xhw5
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message