This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Listener statement doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Listener statement doubt" Watch "Listener statement doubt" New topic
Author

Listener statement doubt

Leena Diwan
Ranch Hand

Joined: Jun 18, 2001
Posts: 351
Hi Friends,

Can anyone tell me what does the following mean?

The HttpSessionListener and HttpSessionAttributeListener are configured
in the deployment descriptor. Therefore, even if a session attribute implements
these interfaces, the sessionDestroyed() and attributeRemoved()
methods will not be called on that attribute.

Regards,
Leena


[SCJP2, SCWCD1.3, SCBCD]
Adrian Pang
Ranch Hand

Joined: Feb 20, 2004
Posts: 40
I don't know what the context that paragraph comes from, but I think it means it's not enough that the class implements the interfaces, it also needs to be registered in the web.xml in order for the listener to work.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3
 
wood burning stoves
 
subject: Listener statement doubt
 
It's not a secret anymore!