Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

HFSJ: Pg. 695 Are the sequences correct??

 
Greenhorn
Posts: 10
  • 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!
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why dont you post full question instead of just answers and page numbers?
 
Greenhorn
Posts: 6
  • 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
  • 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.

 
Ranch Hand
Posts: 783
  • 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
  • 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.

 
Ranch Hand
Posts: 1512
  • 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.
 
Men call me Jim. Women look past me to this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic