Saturday 6 September 2014

ServletRequestAttributeListener

ServletRequestAttributeListener notified whevever attribute has been added, removed, replaced on the ServletRequest.

Method Description
void attributeAdded(ServletRequestAttributeEvent e) Notified when an attribute has been added to the ServletRequest.
void attributeRemoved(ServletRequestAttributeEvent srae) Notified when an attribute has been removed from the ServletRequest.
void attributeReplaced(ServletRequestAttributeEvent srae) Notified when an attribute has been replaced on the ServletRequest.


There are 3 ways to add ServletRequestAttributeListener to the Application.
1.Using Deployment Descriptor
2.Using WebListener Annotation
3.Using addListener method of ServletContext.


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment