• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order of Filters

 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,
What is Container's rule for ordering Filters.The rule given in HFSJ is not clear to me.
Can anyone explain it or provide me the link where I can find this rule??
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the servlet specification pdf.

It states, that first filters identified by url-pattern defined in order are executed and then are those identified by servlet-name - in the order that they are declared in the web.xml

Regards
 
Rohan Kayan
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firstly - All matching url-patterns in the order they specified in DD
Then - All matching servlet-name in the order they specified in DD
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic