• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question for Kathy

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Satou for the link.
 
reply
    Bookmark Topic Watch Topic
  • New Topic