Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question for Kathy

 
P Chittaranjan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we, common ranchers, smell ?

Please have a look at the errata first
http://www.oreilly.com/catalog/headservletsjsp/errata/headservletsjsp.confirmed
 
P Chittaranjan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Satou for the link.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic