How to configure listeners in deployment descriptor(web.xml)
Servlet specification supports http listeners which are explained in the tutorial on java servlets .
Listeners are configured in the deployment descriptor(web.xml) using the elements <listener> & <listener-class> as shown below.
Listeners are configured in the deployment descriptor(web.xml) using the elements <listener> & <listener-class> as shown below.
<web-app> <listener> <listener-class>com.tf.MyListener</listener-class> </listener> </web-app>