You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mahesh Parab <mu...@gmail.com> on 2007/04/22 12:51:07 UTC

Filter before Action servlet

Hi All,
I am new to struts,
my doubt is if i place filter before Action servlet what will be called
first Action servlet or filter.
Thanks,
Mahesh

Re: Filter before Action servlet

Posted by Yannick Haudry <yh...@gmail.com>.
Hi Mahesh,

Actually you can do both, filtering before and after the Action
servlet, this only depends how you organize your filtering work in the
doFilter() method. What will be executed before Action servlet should
be before calling chain.doFilter() method and you can if you like have
additional filtering work after this method that will be executed when
the call returns.

Yannick

On 4/22/07, Mahesh Parab <mu...@gmail.com> wrote:
> Hi All,
> I am new to struts,
> my doubt is if i place filter before Action servlet what will be called
> first Action servlet or filter.
> Thanks,
> Mahesh

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org