Sorry Vengan,
I went thru the rules. Still cannot make it out.
2 rules have been mentioned in p:678
a. All filters match the url-pattern are placed in the filter chain in the order they are declared in the DD.
b. After this, all filters that have a matching filter-name are placed in the filter chain for execution.
I also checked the errata site, couldn't find anything there.
Would appreciate if you can explain it more.
1. How can a <servlet-name> tag in a filter definition contain an url-pattern? Is it not supposed to contain the name of the
servlet to which the filter applies?
2. The url-pattern /* (the last one) is defined as the last. So this filter would be included in every request but only as the LAST!. Isn't it?