Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Question for Kathy

 
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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • 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.
 
Yup, yup, yup. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic