how do i chain up servlet filters?
From: Angus Parvis (angusparvis_at_hotmail.com)
Date: 07/29/04
- Next message: Sebastian Scheid: "Re: AspectJ and Reflection"
- Previous message: Andy Fish: "Re: Tomcat 5 with IIS6 using JK2"
- Next in thread: Cid: "Re: how do i chain up servlet filters?"
- Reply: Cid: "Re: how do i chain up servlet filters?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Jul 2004 11:01:16 +0200
Hi,
I am developing a web-application using Tomcat 5. Most of the user's
requests invoke servlet filters before the request is passed to the
servlet itself.
What I want to do is to chain up several filters. For example when the
users requests /MyServlet the filter-chain should be like this:
LocalizationFilter -> AuthenticationFilter -> /MyServlet
There are more filters involved in this chain, but I don't want to make
the question too complicated.
Furthermore not every filter should be invoked at every request. There
are some servlets, that don't require authentication. These servlets are
located in a directory called /public, so every call to
/public/MyPublicServlet should invoke this chain:
LocalizationFilter -> /MyPublicServlet
I'm new to servlet filters and couldn't find any help in the
documentation of Tomcat or Java Servlets. If you know some good docs or
have some Tomcat-configs to solve this problem, please post them.
Thank you very much for your help.
Greetings,
Angus
- Next message: Sebastian Scheid: "Re: AspectJ and Reflection"
- Previous message: Andy Fish: "Re: Tomcat 5 with IIS6 using JK2"
- Next in thread: Cid: "Re: how do i chain up servlet filters?"
- Reply: Cid: "Re: how do i chain up servlet filters?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|