• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF Servlets & JSP - Sessions Question

 
Peter Braun
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

In Chapter 6 (Session Management) Mock Exam of Head First Servlets & JSP I have found an answer which is not clear for me.

Question 7., Answer C: "Attributes bound into a session are available to any other servlet that belongs to the same ServletContext."

Does is mean every servlet defined inside the same <web-app> tags can access that session?

Thanks in advance.
Peter
 
Satish Ramasamy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This correction is given in errata.

The following has to be added in the option C:
" and handles a request identified as being a part of the same session."
 
Peter Braun
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic