Monday, July 9, 2018

ServletRequestEvent and ServletRequestListener


Constructor of ServletRequestEvent Class
  1. public ServletRequestEvent(ServletContext sc, ServletRequest request) 
Methods of ServletRequestEvent Class
  1. public ServletRequest getServletRequest(): Returns the ServletRequest that is changing. 
  2. public ServletContext getServletContext(): Returns the ServletContext of this web application.
 Methods of ServletRequestListener
  1. void requestDestroyed(ServletRequestEvent sre): Receives notification that a ServletRequest is about to go out of scope of the web application.
  2. void requestInitialized(ServletRequestEvent sre): Receives notification that a ServletRequest is about to come into scope of the web application.


No comments:

Post a Comment