• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

order of filters

 
Navaneetha krishnan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am confused about the order in which the filters are executed. The HFS book states that the filters are executed in the order they are declared in the web.xml. An example shown in HFS explains that the filters are executed in an order that does not match with the order they are defined in web.xml.

Please clarify this.

Regards,
Navanee
 
kapil munjal
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can check errata about this. May be that sentence has been corrected in the errata.

If you still see that its wrong, then please post the page number here.
 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kapil,
I also faced the same problem. can you tell me the link for errata.

N C
 
kapil munjal
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the url -

http://www.oreilly.com/catalog/headservletsjsp/errata/headservletsjsp.confirmed
 
Leandro Melo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Filter are executed in the order they appear on DD. However, the matches for url-pattern are checked BEFORE the matches for servlet-name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic