This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes JSP Session scope object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP Session scope object" Watch "JSP Session scope object" New topic
Author

JSP Session scope object

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Hi,

I read 'JSP Session scope object available to any JSP Page or Servlet within the same session'. How to know say a servlet is within the same session scope as a given jsp. Any ideas, suggestions, links, resoureces, sample code highly appreciated. Thanks in advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61449
    
  67

Please take the time to choose the correct forum for your posts. This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61449
    
  67

If you set an object into the session in one resource and it's available in the other, they are in the same session. Otherwise, not.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSP Session scope object