Originally posted by shweta bulbule: how come the statement
"Attributes bound into a session are available to any other servlet that belongs to the same ServletContext."
is true??? [HFSJ page: 274, Q-7]
Where you found this statement. This is not true. The session attributes are avilable to the thread executing any doXXX / service method which is part of the session. In distributed environment, the session is reside only in one JVM at a time, so all the request processing in the same session have same ServletContext at the point of time.
Even i got confused on this answer. I think the option should be "Attributes bound into a session are available to any other servlet that belongs to the same ServletContext(assume those servlets participate in session.)
'Any object bound into a session is available to any other servlet that belongs to the same ServletContext and handles a request identified as being a part of the same session.'
Answer C leaves off the final part of the sentence: 'and handles a request identified as being a part of the same session.' Without this answer C is not correct.
now we have two statements A and B and we're debating on the truth value of the compoud statemet "A & B" clearly if 'A & B' has to be true, A should be true and B should be true.
it doesn't make sense saying that A is not true without B B seems like only an addition and I really fail to see what this whole thing is about. I would greatly appreciate clarifications on this one. thanks
"It's not enough that we do our best; sometimes we have to do<br />what's required."<br /> <br />-- Sir Winston Churchill