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 Spring in Action this week in the Spring 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: 3164
    
  47

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

No. That's what HttpSessionBindingListener is for.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can a attribute class implement HttpSessinAttributeListener ?