Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can a attribute class implement HttpSessinAttributeListener ?

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 4262
229
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
gurpeet singh wrote: can we have a attribute class implement HttpSessionAttributeListener ?

No. That's what HttpSessionBindingListener is for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic