I didn't think deeply whether question is about Listeners in a package. I have some doubts One of the correct answer is C ServletContextListener can be used to perform an action when servlet context is about to be shutdown.
I am not able to understand this.I know there is a method contextDestroyed(..). I thought this will be called when context is detroyed, not before destroying.Can someone tell me what is correct.
Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized.
Yeah.Its a mistake in the HF Book.It should be Which statements about the listeners are true instead of Which statements about the listeners defined in javax.servlet.package are true. U can find tht at this:
Joined: Nov 04, 2004
Thanks Vineela, that was a very useful link. I am passing it around in my friends circle.
May be JavaRanch can do that too for the HF users (if they haven't already)