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

Q. Implementation of interface HttpSessionListener

 
Karin Paola Illuminate
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Book : Java 2 Web Component Developer [Levi, Sybex]

These are the methods that an implementing class must define:
void sessionCreated(HttpSessionEvent e) This method is called when a session is created.
void sessionDestroyed(HttpSessionEvent e) This method is called to identify that a session has been invalidated.

Why is the second method correctly defined in the following example?
public void
(File)sess.getAttributeDestroyed(HttpSessionEvent e)

EXAMPLE
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic