Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Filters chaining order

 
Victor Dolirio
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I�m studing the HFSJ�s Filter Chapter and I�ve got a trouble in that exercise:


The answer says:
/Recipes/HopsList.do - Filter Sequence: F1, F5, F2
/Recipes/Add/AddRecipes - Filter Sequence: F1, F3, F5

It�s not right to me because I read in the book the filters chain is defined by finding all matches URL patterns and its order is the same defined in the DD. I figured out that its not defined by precedence order of the URL patterns because the first answer I listed would be F2, F5, F1. I�m fooled with this question! What is the right rules for Filters order??!
Can someone help me with my doubt?

Thanks all.
[ September 02, 2008: Message edited by: Victor Dolirio ]
 
Atul Samnerkar
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even i got confused with this in my first reading of HFJS.
Carefully look at the tags in the book...

It is not
<url-pattern>/Recipes/HopsList.do</url-pattern>
however it is
<servlet-name>/Recipes/HopsList.do</servlet-name>

In case of filters, container decides the squence based on "US" (URL-Servlet) Hence the sequnce given in the book is correct.

Cheers...
 
Victor Dolirio
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
really, i don�t paid attention for this... thank you
[ September 03, 2008: Message edited by: Victor Dolirio ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic