• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sequence of ValueBound and ValueUnbound

 
Abhishek Pratap
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi All,

just wanted to know what is the sequence in which valueBound and ValueUnbound is called on a class that extends HttpSessionBindingListener if the same class object is set twice on the session object.
 
Ronaldo Nazario
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, all the listeners are interfaces, so your class would implement them, not extentend them.

If you set an attribute to a session twice this is what you'll get:

1st time you include the attribute:
1- call to valueBound

2nd time you include the attribute:
2- call to valueBound
3- call to valueUnbound

 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There have been discussions in the past on this subject. you should search the forum for these discussions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic