Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HFSJ page number 712 Filter sequence.

 
manisha makwana
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

for the request /Receipes/HopList.do the sequence answer is 1,5,2.

Can anyone explain me how?In the book it has mentioned that all the filters with matching URL are located first, and then Filters with matching URL patterns are placed in the chain in the order in which they are declared in DD.

So according to this sequence should be 1,2,5 this is what i think.Please enlighten me on the same.
 
Lee Kian Giap
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Order as follow:
first is <url-pattern> (matched patterns in the order in which they are declared in DD),
then only <servlet-name>
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!