Saturday 6 September 2014

ServletRequestListener

ServletRequestListener interface notified whenever request coming into and goes out of scope of a web Application.

Method Description
Void requestDestroyed(ServletRequestEvent e) Notified when a ServletRequest is about to go out of scope of the web application.
Void requestInitialized(ServletRequestEvent e) Notified when a ServletRequest is about to come into scope of the web application.

There are 3 ways to add ServletRequestListener 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