Hmm, really? I thought that since String is not a primitive data type, when you
pass a String to a variable, you are passing a reference to that String obect,
(and it is not passed by value)..? So my guess would have been that doing a
"putValue" wouldnt have been necessary.. Of course it should easy enough to
check..
Geeta
Kevin Mukhar wrote:
> 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