tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: HelloWorld servlet, or just about
Date Fri, 19 Dec 2008 22:55:41 GMT wrote:
> Actually this is very easy; when you want to pass the request down the
> chain (i.e. into the servlet) you call the chain.doFilter() method. When
> you *don't* want the request passed on, your filter just sets up the
> response (status, header, etc.) and returns.

Thanks, that is what I wasn't sure of.  I was wondering if one had to 
start "dispatching" the request somewhere else etc..

> André Warnier <> wrote on 12/19/2008 02:50:25 PM:
>> But now, a trickier question :
>> I already have a servlet filter, in front of a servlet which I need
> anyway.
>> Can I, in the filter, and based on some characteristic of the request,
>> return a response to the caller immediately, bypassing the servlet
>> entirely ?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message