Page 1 of 1
About Question enthuware.jwpv6.2.729 :
Posted: Tue Nov 27, 2012 2:44 pm
by tori3852
An HttpSessionAttributeListener must be configured in the deployment descriptor using the <listener> element.
and annotation.
Re: About Question enthuware.jwpv6.2.729 :
Posted: Wed Nov 28, 2012 6:39 pm
by admin
You are right. This has now been fixed.
thank you for your feedback!
Re: About Question enthuware.jwpv6.2.729 :
Posted: Tue Sep 17, 2013 2:06 pm
by Jkike79
The API of the the HttpSessionAttributeListener interface says:
"Interface for receiving notification events about HttpSession attribute changes.
In order to receive these notification events, the implementation class must be either declared in the deployment descriptor of the web application, annotated with WebListener, or registered via one of the addListener methods defined on ServletContext."
So, my question is why ServletContext.addListener is not in the explanation of the answer?
Thank you
Barbara
Re: About Question enthuware.jwpv6.2.729 :
Posted: Tue Sep 17, 2013 3:47 pm
by admin
You are right. This has now been added in the explanation.
thank you for your feedback!
Paul.