i think the output of console is wrong and it should appear:
counter= 1 name= employee value= model.Employee@b3cac9 // because of the setAttribute() in EmployeeListener
Attriburte Removed // because of submit from html
counter= 0 name= employee value= model.Employee@b3cac9 // because of removeAttribute in FirstServlet
1.what are these other attributes in the output ?
2.why is output different when run on tomcat 5 and tomcat 6 ?
Attributes are objects associated with a request. Attributes may be set by the
container to express information that otherwise could not be expressed via the API,
or may be set by a servlet to communicate information to another servlet (via the
Name of attribute: org.apache.AnnotationProcessor.
ContextAttributeTracker before adding employee lines twice in the console output ?
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton