Hello Kathy,
One Question from HFSJ.
This is from attribute and listeners page 211 question 6.
Q: Which statements about listeners defined in
javax.servletpackage are true?(Choose all that apply).
A. A
ServletResponseListener can be used to perform an action when a
servlet response has been sent.
B. An
HttpSessionListenercan be used to perform an action when an
HttpSessionhas timed out.
C. A
ServletContextListenercan be used to perform an action when the servlet context is about to be shut down.
D. A
ServletRequestAttributeListener can be used to perform an action when an attribute has been removed from a
ServletRequest. E.A
ServletContextAttributeListener can be used toperform an action when the servlet context has just been created and is available to service its first request.
I feel the answere should be C and D.
Because HttpSessionListener is in
javax.servlet.http package not in
javax.servlet.
But in the book the answere is given as B,C,D.
Can you please clarify my doubt?
Thanks in advance
Chittaranjan