And written a Servlet which gets the Dog object and prints.
As you can see here I also overwrite, remove and re-assign the Dog object but I don't see any trace!!! I can only see the Constructor calls ...
my web.xml is:
This is the example given in the Head First Servlet & JSP 2nd Edition (Page 183)!!!
Can you please let me know, what should I need to do to trigger those methods??
SCJP: 96% SCWCD: studying
Joined: Mar 22, 2005
Here's a little hint: You're using a HttpSessionAttributeListener and a HttpSessionBindingListener. Maybe the servlet API contains some other class that is better suited for handling context attributes?