• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSeeionBindingListner vs HttpSessionAttributeListner

 
priya Agrawal
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please explain me when bound method is called and when AttributeAdded() method is called....


thanks
Priya Agrawal
 
Mohd Fuzail
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HSF Page 183

FYI


valueBound()or valueUnbound() methods are called when attribute is added or removed from session. But the information is meant for the attribute themselves. Here attribute is also a listener and its Listening when attribute itself has been added/removed

attributeAdded()methods are called again when attribues are added/removed/updated from a session. This information is relevant for the class which implements HttpSessionAttributeListener.

Hope this clarifies the issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic