File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 1710

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
It's not a secret anymore!