• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

HFSJ Mock exam for chapter 5

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I was solving the mock exam for chapter 5 of Head First Servlet and JSP. I doubt there might be a typo in question 6 answer.

The question asks to choose the true statements about listeners in javax.servlet package. The solution showed that option B is correct.

Here is what option B says:

"An HttpSessionListener can be used to perform an action when HttpSession has timed out."

I think it's a typo because HttpSessionListener is injavax.servlet.http package not javax.servlet

Thanks,

Sherif
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you are right, it's an error :-)
 
Sherif Mahmoud
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I looked in the book errata on the o'reilly web site. It lists this as an error and the correction is to remove the part that specifies that the listeners should be in javax.servlet package.

Thanks,

Sherif
 
reply
    Bookmark Topic Watch Topic
  • New Topic