Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

How to use HttpSessionActivationListener

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic