Jean Bresse wrote:
>
> 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...
When you call a method of any object reference, the object may be
changed, but the reference is not changed. So, in this case, you would
not need to put the vector into the session again.
When you store an object in a session, you are really storing a
reference. When you get an object from the session, you are really
getting a reference. So, for example, servlet B will have a reference to
the same object to which the session has a reference. One object, two
references. Any change you make to the object in servlet B is a change
to the same object "stored" in the session.
Kevin Mukhar
___________________________________________________________________________
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