• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using HttpSessionBindListener with JSP

 
Cool Impression
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I am Usman,
I am working with JSP,
I am using sessions, Can U tell me how to use HttpSessionBindListener interface with JSP, It's events , valueBound and valueUnbound.
and any suitable example.
If you can tell me.
Thank You.
Usman

------------------
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to create a class that implements the HttpSessionBindingListener (note the spelling) interface. You could make it a Bean with application scope if you are using JSP.
The event notification methods are simple to use, just look at the documentation for HttpSessionBindingEvent to see what you can do.

Bill
------------------
author of:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!