<Filter mapping> can be done either using <url-pattern> or <servlet-
name>
Follow this process
All the filters with matching URL
pattern are placed in the chain in
the order in which they are declared in DD.
Then all the filters with matching <servlet-name> are placed in the
chain in the order in which they are declared in DD.
Now for example
Recipes/HopsList.do has the matching
<url-pattern>/Recipes/*</url-pattern> ----------------1
<url-pattern>/*</url-pattern> ------------------------5
<servlet-name>/Recipes/HopsList.do</servlet-name> ----2
Here all filters with matching URL patterns are placed first and then
all filters with matching servlet-name
Regards
Gaurav