aspose file tools*
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 Spring in Action this week in the Spring 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Listener statement doubt