> 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 need to use putValue. When you use getValue you are getting a
reference to the object.
> 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.)
No. getValue simply returns a handle to the object so that you can
access it.
> 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?
Yes. Each time an object is put into the session the listeners get
kicked as a put of an object with the same name as one allready in the
session requires that the previous object gets unbound and the new
object gets bound.
No. valueUnbound only gets called when the object is removed from the
session, either by removeObject or a replacement.
--
James Davidson
[EMAIL PROTECTED] http://java.sun.com/products/servlet
[EMAIL PROTECTED] http://jakarta.apache.org
!try; do() PGP:0x7D776205
___________________________________________________________________________
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