• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on a question in Listeners

 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

For which three events can web application event listeners be registered?
(Choose three)

A. When a session is created
B. After a servlet is destroyed
C. when a session is timed out
D. When a cookie has been created
E. When a servlet has forwarded a request
F. When a session attribute value is changed

The answers are A,C,F

My doubt is how option "C" and option "F" can be answers?


Thanks in advance.
 
Aditya Singh
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems you are confusing it with sth else.

SessionTimeOut :- SessionDestroyed(HttpSessionEvent)

SessionAttributeChange :- Attribute Added/Removed/ Replaced(HttpSessionBindingEvent)
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Quote Your Sources. Questions with no source (Marcus Green, HFSJ, etc.) will be removed.
 
Charmy Madhvani
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why E is not correct (ServletRequestListner).
 
Aditya Singh
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
E is not correct cos forwarded does not mean it has created a new request. It is forwarding the already created one.
 
Charmy Madhvani
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok..got your point. Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic