This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes valueBound() and valueUnbound() methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "valueBound() and valueUnbound() methods" Watch "valueBound() and valueUnbound() methods" New topic

valueBound() and valueUnbound() methods

Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707

What specific jobs are generally done inside the valueBound() and
valueUnbound() methods of the HttpSessionBindingListener interface that
is implemented by any class so that when the objects of the class are
added to using setAttribute() and removeAttribute() they (valueBound() or
valueUnbound()) could be called.

Please give some scenarios where I can avail the benefit of this listener.


Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585

If you are reading HFSJ, then open page #183 and read the Answer of the Question asked on that page, it contains a great explanation ...

Best regards ...

Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Atul Sawant
Ranch Hand

Joined: Jul 06, 2006
Posts: 304
This listener is used to let the attribute know when they get created in a session (valueBound) or get removed from a session (valueUnbound).

Mission SCWCD. Mission SCJP Complete: SCJP 1.4 - 91%
I agree. Here's the link:
subject: valueBound() and valueUnbound() methods