##### See Comments Below
(*Chris*)
----- Original Message -----
From: Chris Means <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 13, 1999 12:24 AM
Subject: Session objects
> I'm just coming up to speed on this (Java & Servlets) so pardon me if the
> questions are silly.
>
> 1) As we're storing actual objects in the HttpSession object, if we use
> getValue and modify the object (properties) do we still need to use
> putValue? Why, aren't we dealing with another reference to the same
object?
##### No, once an Object reference is added to the session, with putValue,
retrieving that reference does not remove it from the session, so calling
putValue after modifying the Object is not required.
>
> 2) If the answer to #1 is yes, then does that mean that getValue actually
> performs a removeValue? (I would think not, but I want to make sure.)
##### See #1
>
> 3) If the object used in the putValue call implements
> HttpSessionBindingListener, does the valueBound method for that object get
> called each time the object is 'put' into the HttpSession or only the
first
> time (it's not already there)? And then does it mean that the
valueUnbound
> method is called for a getValue call?
##### valueBound will be called each time the putValue is called, but since
it is only necessary to call putValue once, that should not pose a problem.
valueUnbound is not called for a getValue.
>
> Thanks for any help clearing up my confusion here.
>
> If there's anything I'm neglecting here regarding these issues, please let
> me know.
>
> Thanks.
>
> -Chris Means
> mailto:[EMAIL PROTECTED]
> ICQ: 36475838
> Empower Geographics, Inc.
> Visit us at: http://www.empowergeo.com
>
>
___________________________________________________________________________
> 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