Hi,
I'm reading the excellent 'Head First
Servlets and
JSP' book, and am trying to extend one class to implement HttpSessionBindingListener, but it's not working.
Here is the simple Dog class that I extended:
Here is the Context listener that sets the dog instance as a context attribute:
And here is the Servlet:
But for some reason, the valueBound method never seems to be triggered.
ANy clues why this is the case?
Kind regards,
Tony.