This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 60798
    
  65

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: 60798
    
  65

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.
 
wood burning stoves
 
subject: JSP Session scope object
 
Similar Threads
page vs pageContext
Scope of a servlet
jsp:useBean query!
How To Get a List Object with Request?
session, mock, p 274 - 7 c - is correct?