This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Can you tell us first what the rules are, and then which filter will be invoked ? If you understand the rule, you'll be able to figure it out. You'll also understand that we need the servlet mapping for ServletToFilter too.
Rules for the matching URL pattern 1.Exact Mapping 2.dirctory Mapping (or extention mapping) 3.wildcard mapping (/*)
This is true for servlets but NOT for filters. Remko is correct. <url-pattern> matches will be added in the order they are declared in the DD. Then the <servlet-name> matches are added to the end of that, also in the order they are declared in the DD.
The 3 ordering rules listed above do not apply to filters.