File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes can a attribute class implement HttpSessinAttributeListener ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "can a attribute class implement HttpSessinAttributeListener ?" Watch "can a attribute class implement HttpSessinAttributeListener ?" New topic
Author

can a attribute class implement HttpSessinAttributeListener ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

please refer hfsj 2nd edition page 264. there is a table showing various session related events and listeners. it says that HttpSessionAttributeListener is usually implemented by "some other class" as opposed to attribute class(attribute bound to session scope). but is it always true. can we have a attribute class implement HttpSessionAttributeListener ? if not why and if yes what will be the consequences

Regards
gurpreet
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3011
    
  34

gurpeet singh wrote: can we have a attribute class implement HttpSessionAttributeListener ?

No. That's what HttpSessionBindingListener is for.


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can a attribute class implement HttpSessinAttributeListener ?
 
Similar Threads
Listener Registration
Session Listener confusion
Regarding HttpSessionAttributeListener and HttpSessionBindingListener
Doubt in Enthuware Questions
HttpSessionListener,HttpSessionAttributeListener