In this case, you may use one set of <filter-mapping><filter-name> elements with multiple <url-pattern> elements. That design is actually better than one in which you set one url-pattern for each <filter-mapping> element. In the latter design, the underlying Java code will create extra objects to represent the additional filter mappings, unnecessarily.
Is it like below.
Just to check the rule is correct or not.
It would benefit many to know how you got on with your settings for multiple url-patterns. Would you please share your experience with us?
Sorry for the delay..... Its working fine using multiple url-patterns as well.... Thanks BK
Thanks for sharing your experience.