Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use HttpSessionActivationListener

 
ayyappan Bas
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello sir

am java Beginner.and am using NetBeen Tools.

How to use HttpSessionActivationListener.and why we want use.give me sample coding.

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
am java Beginner, How to use HttpSessionActivationListener

Amazing that a beginner is thinking about using HttpSessionActivationListener This interface is used to register a session listener in a web application. The web container will notify any class implementing this interface when the session is being activated or passivated. Are you sure you want to use this ?
 
ayyappan Bas
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Christophe Verre:

Amazing that a beginner is thinking about using HttpSessionActivationListener This interface is used to register a session listener in a web application. The web container will notify any class implementing this interface when the session is being activated or passivated. Are you sure you want to use this ?


yes sir

i have set session timeout 60 sec in jsp .after that how to call session value (HttpSessionActivationListener in servlet).
is it possible.Help me .
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're interested to know when the session is destroyed, you should use a HttpSessionListener instead. Maybe this tutorial can help you.
 
ayyappan Bas
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Christophe Verre:
If you're interested to know when the session is destroyed, you should use a HttpSessionListener instead. Maybe this tutorial can help you.


Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic