and annotation.An HttpSessionAttributeListener must be configured in the deployment descriptor using the <listener> element.
About Question enthuware.jwpv6.2.729 :
Moderators: Site Manager, fjwalraven
-
- Posts: 38
- Joined: Wed Oct 31, 2012 2:53 am
- Contact:
About Question enthuware.jwpv6.2.729 :
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.729 :
You are right. This has now been fixed.
thank you for your feedback!
thank you for your feedback!
-
- Posts: 11
- Joined: Tue Sep 10, 2013 3:20 pm
- Contact:
Re: About Question enthuware.jwpv6.2.729 :
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
"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
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.729 :
You are right. This has now been added in the explanation.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 7 guests