What is Servlet Listener ?
Listener is basically pre-defined interfaces that are available for developers in the application lifecycle to achieve some tasks especially when dealing with the ServletContext as well as HttpSession objects. While it saves a lot of time, it also makes the application less complex and more maintainable. In one web application, multiple listeners are allowed so it means that ServletContextListener may co-exist with HttpSessionListener. As you may have known, there are two Listeners that are widely used i.e. ServletContextListener and HttpSessionListener. They both are having different functionalities but both are equally important.
Related Questions
- When will the Forms Listener servlet use HTTP 1.1 requests to the webserver, and when will it use HTTP 1.0 requests?
- What is the difference for Internet Deployment between the Forms Listener and the Forms Listener Servlet?
- What is the difference between the Forms Servlet and the Forms Listener Servlet?