title: session listener - valueBound or valueUnbound doesn't called
body: <p>I've just tried to add session listeners in my test web app the <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionBindingListener.html" rel="nofollow">HttpSessionBindingListener</a> and <a href="http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/http/HttpSessionAttributeListener.html" rel="nofollow">HttpSessionAttributeListener</a> ones; 
  They both implemented into my test object as : </p>
  
  <pre><code>public class MySessionListener implements HttpSessionBindingListener,HttpSessionAttributeListener 
  {
  //implemented methods...
  }
  </code></pre>
  
  <p>The thing is...</p>
  
  <p>I tried code like a</p>
  
  <pre><code>session.setAttribute("name",new TestValue());
  </code></pre>
  
  <p>as a result, I expected to call <code>HttpSessionBindingListener</code> event like <code>valueBound(...)</code> but I have called just the <code>HttpSessionAttributeListener</code> one as <code>attributeAdded(...)</code> only :( </p>
  
  <p>Moreover, concerning the <code>valueUnbound(...)</code> method attitude is totally the same thing as I mentioned for I use code like</p>
  
  <pre><code>session.removeAttribute("name");
  </code></pre>
  
  <p>...but I get all the same <code>attributeRemoved(...)</code> being called only :S</p>
  
  <p>I wanted to try <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSession.html#putValue%28java.lang.String,%20java.lang.Object%29" rel="nofollow">putValue()</a> method instead but right now I am watching HttpSession docs which says that "putValue is Deprecated. As of Version 2.2, this method is replaced by setAttribute(java.lang.String, java.lang.Object)"</p>
  
  <p>So I don't get it why the <code>valueBound(...)</code> or <code>valueUnbound(...)</code> doesn't invoke and how to invoke them anyway?</p>
  
  <p>Thanks</p>