On Tue, 23 Jul 2002, John Rishea wrote:

> Date: Tue, 23 Jul 2002 06:33:57 -0600
> From: John Rishea <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat User Group <[EMAIL PROTECTED]>
> Subject: Help with chaining servlets via filters
>
> Could someone please point me toward a good resource that shows an example
> of chaining two servlets using a filter?  I've found lots of filter examples
> during my google searches but none of them shows exactly how to chain two
> servlets together with a filter.
>

What are you trying to accomplish by "chaining two servlets using a
filter"?  The traditional definition of servlet chaining (feeding the
output of one servlet into another) has turned out to be a very bad design
pattern, so it's not supported.

On the other hand, filters themselves can modify input on the way in, and
output on the way out.  And you can easily configure more than one filter
to be mapped to a particular request.

It all comes down to what you are trying to accomplish.

> Thanks for the help.
>
> __________________
> John Rishea

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to