No not correct it is decided on the bais of url-pattern or servlet-name in filter-mapping element in DD, where url-pattern matching filters are always given higher precedence than servlet-name mapping if both refer to used for servlet.
Joined: Sep 18, 2006
Problem is that i know that url-pattern comes before servlet name but i guess way option is structured is confusing.I am not sure if its referring only to servlet only ( and not url patterns at all).
Such structuring of questions sometimes make you do mistake even when you know the concept
OK, sorry. My answer was a little bit too short. The order of filters in the same chain corresponds to the order the filters appear in the DD. The chain of a filter is evaluated by means of the mappings...
Unfortunately this article from Sun is the only one I've found at the moment which more or less describes the behavior of filters.
If you have it at hand: "Head First - Servlets & JSPs" describes this a lot better!
"Vikrant", You have already been warned several times about the Naming Policy. Please read it carefully and change your name accordingly (you need to set both first and last names). Be careful that your account may be closed if you do not make the necessary changes. Thank you.