| Author |
HttpSessionBindingListener is called when attribute is replaced?
|
bengt hammarlund
Ranch Hand
Joined: Oct 17, 2003
Posts: 78
|
|
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!
|
<b><i>Bengt Hammarlund</i><br />� Sun Certified Java Programmer</b>
|
 |
Sergey Tyulkin
Ranch Hand
Joined: May 10, 2005
Posts: 87
|
|
|
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
Joined: Oct 17, 2003
Posts: 78
|
|
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.
|
 |
Sergey Tyulkin
Ranch Hand
Joined: May 10, 2005
Posts: 87
|
|
Sorry, if i was too tough. You can look here: http://www.coderanch.com/t/170171/java-Web-Component-SCWCD/certification/jdiscuss http://www.coderanch.com/t/169992/java-Web-Component-SCWCD/certification/Session-Listeners-Questions
|
 |
alex Bell
Greenhorn
Joined: Aug 29, 2005
Posts: 8
|
|
|
I think you are right
|
do as you do.<br />SCJP 1.4<br />SCWCD 1.4<br />SCEA (in process)
|
 |
 |
|
|
subject: HttpSessionBindingListener is called when attribute is replaced?
|
|
|