File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSessionBindingListener is called when attribute is replaced?

 
bengt hammarlund
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simple question:
HttpSessionBindingListener is called when attribute is replaced?

According to a mock exam I�m using, only HttpSessionAttributeListener is called when attribute is replaced. It seems wrong to me because the if an attribute with the same name was bounded to the session, and it�s replaced, it is unbounded before the new values it bounded (am i right?).

So if this attribute implements HttpSessionBindingListener, should�t it be notified (valueUnbound method)?

I�ve not tried yet, but i�ll look for it on the specification. But if someone already found or knows the right anwser, please post it. Thanks!
 
Sergey Tyulkin
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, this question was asked many times on this forum. And you may be sure, that HttpSessionBindingListener is called, whan attribute is replaced by another attribute in the session.
 
bengt hammarlund
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply. Actually I allways search before posting, but I did not found any one specifically about it.

And I read the servlet specification, and didn't found anything about it.
If someone knows where this is specified on the servlet specification (if it is at all), please share.
 
alex Bell
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are right
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic