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

Answers on Page 416

 
Sri Ram
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

This is reg. the answeres on Page 416 of HFS&J. For me answer to question number 3 is NOT correct but the book says IT will work .

In both Q1 & Q2 . Servlet code sets a attribute in requet but how come it won't work in Q3 and it works in Q1.

Please shed some light .. I don't know what I am missing here.

Thanks.
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vanniarajan,

Good catch!

What you signals is confirmed by Kathy in this thread:
2) Be the Container in chapter 8, the third example will not work for the same reason that the first example doesn't work--because the attribute is at Request Scope, and the default scope is Page scope.


Best regards,

Phil.

PS: What about you to mention it in the Head First Servlets & JSP errata page? (It is not yet). Posting there is the best way to help the authors to improve the next print of that great book!
[ September 25, 2004: Message edited by: Philippe Maquet ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic