Thank you for your reply Kevin.
Would it also apply if it was a Vector instead of a String?
For example, say that we added an element to the vector...
Jean
-----Original Message-----
From: Kevin Mukhar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 12, 2000 3:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Updating a session variable
Jean Bresse wrote:
>
> The value of that local object changes with the following:
>
> myInfo = "some new value is now in effect";
Because you are assigning a new value to the reference variable, the
reference inside the session object still points to the old string. If
you want the new string to be saved as part of the session, you need to
put it into the session object.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html