File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets 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
jQuery in Action, 2nd edition
subject: HF Servlets & JSP - Sessions Question
Similar Threads
HFSJ question on session attribute
Doubt in Session Attributes (HFSJ)
Same user different browser window ? new seesion or old one?
sending session object from servlt-multiple jsp's