Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

AttributeListeners VS BindingListeners

 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having some problems understanding the difference in functionality provided by the HttpSessionAttributeListener interface and the HttpSessionBindingListener interface. Does anyone have an easy way of differentiating the roles of the above named interfaces?
[ May 06, 2002: Message edited by: Ricardo Cortes ]
 
Ricardo Cortes
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I think I finally figured it out. Correct me if I am wrong. If I have an object aBook of type Book, then HttpSessionAttributeListener will send out a notification when an object has been added, replaced or removed from the session whereas HttpSessionBindingListener will send out a notification (as long as Book implements the HttpSessionBindingListener interface) when aBook has been bound or unbound from the session. Is this a correct?
 
Ricardo Cortes
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess I never realized how good the search function of this messageboard really was...I did some searching and found several posts on the subject, including this one:
https://coderanch.com/t/164328/java-Web-Component-SCWCD/certification/difference-HttpSessionBindingListner-HttpSessionAttributeListner
 
Where does a nanny get ground to air missles? Protect this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic