Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes Filter Orders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Filter Orders" Watch "Filter Orders" New topic
Author

Filter Orders

Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
So far i only have one filter in my web app. I am planing to add another filter . However i was just curious is there any order in which filters are called ? do we have any control over the order of filters.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

The will be invoked in declaration order. See the Servlet Specification for questions such as these.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Filter Orders