• Post Reply Bookmark Topic Watch Topic
  • New Topic

session  RSS feed

 
mayank jamindar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Plz help me answer:
an attribute is replaced in the session:
1)None of these
2)HttpSessionBindingListener
 
mayank jamindar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi help please:

Question is Can this be detected from the following listner:
an attribute is replaced in the session:

options are :
1)None
2)HttpSessionBindingListener

thanks in advance
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Option 2 is correct
 
mayank jamindar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou vishnu,
More suggestions are welcome
 
Jay Tse
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a little confusing since the HttpSessionAttributeListener has a method called attributeReplaced that gets called for an object implementing the HttpSessionAttributeListener interface.

But, I guess if the replaced attribute object implements the HttpSessionBindingListener, then its "valueBound" method would get called when it is added to the session.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!