• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ

 
Muhammad Ghufran
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am preparing for SCWCD exam and using HFSJ for J2EE 1.4. I am confused while having mock exam for chapter-6 (Coversational State) Question7

Ouestion
--------
7- Which statements about session attribute are true?

A- <Some statement>
B- <Some statement>
C- Attributes bound into a session are available to any other servlet that belongs to the same ServletContext.
D- <Some statement>

I have marked the option "C" as false. In the answers of HFSJ (page 274) it is marked as true and refereing to servlet Spec. (2.4 p59)
The Spec. quote as:

"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."

I have marked it false because only those Servlets/JSPs can access which belong to same session. Please advise me what would you select if you find same ouestion in exam.

Thanks.
 
Rodrigo Vieira
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which language is your book? My book is cleared true but in other language. I believe that you hidden one important part of the statement.
 
Muhammad Ghufran
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my book option "C" is true. I guess it should be wrong. My book is in english, I didn't know it was printed in other languages also
 
Pradeep Deshmukhmane
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per spec...
"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."

So that HSJF is correct.. and C is true as per spec... read above line again. you will come to know..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic