This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
The <listener> element in .tld file will have any one of the following 4 application event listeners. HttpSessionListener HttpSessionAttributeListener ServletContextListener ServletContextAttributeListener From Jsp 1.2 Spec: ------------------- JSP.220.127.116.11 Event Listeners A tag library may include classes that are event listeners (see the Servlet 2.3 specification). The listeners classes are listed in the tag library descriptor and the JSP container automatically instantiates them and registers them. A container is required to locate all TLD files (see Section JSP.7.3.1 for details on how they are identified), read their listener elements, and treat the event listeners as extensions of those listed in web.xml. The order in which the listeners are registered is undefined, but they are registered before application start. Here is a good working example from Marty Hall's 'More Servlets' book. http://archive.moreservlets.com/Chapter10.html Regards, Maha Anna [ December 01, 2002: Message edited by: Maha Annadurai ]