hi
session object is different from local object...
i will maintain the same value when the putValue function executed...
if u want to change u have to execute putValue function once again
suriya
Try for everything
----- Original Message -----
From: Jean Bresse <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 12:52 AM
Subject: Updating a session variable
> Hi all:
>
> Here is the situation I am dealing with:
>
> Servlet A stores a String object called myInfo as follow:
>
> session.putValue("myInfo", myInfo);
>
> This is only done once per session as it is done by init( ).
>
> Servlet B retrieves the value of myInfo and initializes a local String
> object like this:
>
> String myInfo = (String)session.getValue("myInfo");
>
> The value of that local object changes with the following:
>
> myInfo = "some new value is now in effect";
>
> Here is my question:
>
> Is the new value of myInfo reflected for the session variable myInfo, or
do
> I need to execute session.putValue("myInfo", myInfo);?
>
> Thanks!
>
> Jean
>
>
___________________________________________________________________________
> 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