They are executed in the order they appear in web.xml, subject to the
mapping rules (i.e., if you have 4 filters, filter 2 and 3 might be
skipped for a given request depending on how they are mapped, but filter 1
and 4 will fire in that order, assuming they are listed 1, 2, 3, 4).

So, in your specific case, if SecurityFilter is listed first and
AccessControlFilter is listed second, then SecurityFilter will always fire
before AccessControlFilter fires, but AccessControlFilter may not always
fire, depending on its mapping.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Fri, January 27, 2006 12:04 pm, temp temp said:
> I written two filters for my web application.
>   One filter is to check whether session has userId called
> SecurityFilter.(This filter  is applied to all *.do)
>   Second filter to check if login user has access to a particular  page
> called AccessControlFilter .(This filter only to some .do)
>   in the second filter I need a userId to check if user has permission to
> access a page  say user1.do  .
>   when a request comes for user1.do  which filter is executed first ?
> SecurityFilter or AccessControlFilter  .
>   Thanks & Regards
>
>
>
>
> ---------------------------------
>
>  What are the most popular cars? Find out at Yahoo! Autos


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

Reply via email to