• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HFSJ

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
reply
    Bookmark Topic Watch Topic
  • New Topic