Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

SRV.7.3 Session Scope

Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SRV.7.3 Session Scope says that :

HttpSession objects must be scoped at the application (or servlet context) level.

Page 267,Q7 (c) of HFSJ says that Attributes bound into a session ares available to other servlet that belongs to same servletcontext.

Does it mean that any servlet in the context which does not have access the the session variable can access the session attribute.
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I think no. Only the servlets participates in the session ( request processing) have access to session attributes. All the requests in a session are processed in one servletcontext only.

Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic