Which three interfaces need to be declared in the web application descriptor?
Following are the different event listeners which can be configured to be used in a Web application:
Servlet Context Events javax.servlet.ServletContextListener
javax.servlet.ServletContextAttributeListener
To receive notification events, the listener implementation class must be configured in the DD. Request Events javax.servlet.ServletRequestListener
javax.servlet.ServletRequestAttributeListener
To receive notification events, the listener implementation class must be configured in the DD. Session Events javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionAttributeListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionActivationListener
There's no need to configure the HttpSessionActivationListener and HttpSessionBindingListener implementation classes in the DD. Regards,
Kunal Jaggi<br />Author of <a href="http://www.tatamcgrawhill.com/html/titleDetail.jsp?isbn=9780070249103.html" target="_blank" rel="nofollow">"SCWCD Exam Guide"</a>, SCWCD 5 (exam 310-083 and 310-084), <a href="http://www.tatamcgrawhill.com/html/titleDetail.jsp?isbn=9780070249103.html" target="_blank" rel="nofollow">McGraw-Hill</a><br /><a href="http://javaevangelist.com/" target="_blank" rel="nofollow">http://javaevangelist.com/</a><br /><a href="http://www.oreillynet.com/pub/au/2669" target="_blank" rel="nofollow">http://www.oreillynet.com/pub/au/2669</a>