Which interface must a class implement so that instances of the class are notified after any object added to a session?

Which interface must a class implement so that instances of the class are notified after any object
added to a session?

Which interface must a class implement so that instances of the class are notified after any object
added to a session?

A.
javax.servlet.http.HttpSessionListener

B.
javax.servlet.http.HttpSessionValueListener

C.
javax.servlet.http.HttpSessionBindingListener

D.
javax.servlet.http.HttpSessionAttributeListener



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Allan Santos

Allan Santos

D.
HttpSessionAttributeListener has the methods:
attributeAdded, attributeReplaced, attributeRemoved
then will be call every time that an attribute is treated on the session.