This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HF Servlets & JSP - Sessions Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HF Servlets & JSP - Sessions Question" Watch "HF Servlets & JSP - Sessions Question" New topic

HF Servlets & JSP - Sessions Question

Peter Braun
Ranch Hand

Joined: Feb 09, 2005
Posts: 57

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.
Satish Ramasamy

Joined: Feb 13, 2006
Posts: 15
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."

Thanks,<br />Satish<br /> <br />SCJP 1.4 - 98%
Peter Braun
Ranch Hand

Joined: Feb 09, 2005
Posts: 57
I agree. Here's the link:
subject: HF Servlets & JSP - Sessions Question