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 Objects in Session 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 "Objects in Session" Watch "Objects in Session" New topic
Author

Objects in Session

Orem Hun
Greenhorn

Joined: May 24, 2005
Posts: 28
When an object is stored in a session and later we change that object, does that change reflect in the stored object. For example:

My impression is that objInst gets serialized and stored in the session, so any changes that are made later will not be in the objInst. The above code will just print 99. Please correct me if this is wrong.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

What happened when you tried it?

In other words -- you've already written the code, you can answer this question easily for yourself. Why post here until you've tried it for yourself?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Objects in Session
 
Similar Threads
selecting an option in a select box from session variable
Not so good with boolean and loops
static method
jsp:useBean
Define tag cannot set a null value