This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ: Pg. 695 Are the sequences correct??

 
Jinesh Shah
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answers are:
1,5
1,5,2
1,5,4
5
1,3,5

I think, the 2nd and 3rd answers should be:
1,2,5 (NOT 1,5,2)
1,4,5 (NOT 1,5,4)

(because the book says filters will be executed in the order in which they are declared in the DD)

Can someone please explain this discrepancy?
Thanks!
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why dont you post full question instead of just answers and page numbers?
 
nikitha aedma
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answers that they gave are correct because we have to first look at matching URL patterns and the look at matching servlet name.
 
Jinesh Shah
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for clarifying!!
Originally posted by nikitha aedma:
The answers that they gave are correct because we have to first look at matching URL patterns and the look at matching servlet name.
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jinesh,

While HFSJ is a very good book, remember that not everyone has it. So when discussing a specific question, please post the full text of both the qustion and the possible answers. This way people who do not have the book can also benefit from the shared knowledge.
 
Jinesh Shah
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, will do. Thanks.
Originally posted by Paul Bourdeaux:
Jinesh,

While HFSJ is a very good book, remember that not everyone has it. So when discussing a specific question, please post the full text of both the qustion and the possible answers. This way people who do not have the book can also benefit from the shared knowledge.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good advice guys. And for those of us that have the book, we will not always have it with us every time we are browsing the forum, so posting the complete question and answer is the best thing.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic