Hi:
This is a "late" reply.
Please have a look at
"public interface HttpSessionBindingListener
extends java.util.EventListener
Causes an object to be notified when it is bound to or unbound from a
session. The object is notified by an HttpSessionBindingEvent object."
U need to write an object that implements the interface, effectively provide
your logic for
void valueBound(HttpSessionBindingEvent event)
Notifies the object that it is being bound to a session and
identifies the session.
void valueUnbound(HttpSessionBindingEvent event)
Notifies the object that it is being unbound from a session and
identifies the session.
and then use the HttpSession object
<info>
This interface allows servlets to
1. View and manipulate information about a session, such as the session
identifier, creation time,
and last accessed time
2. Bind objects to sessions, allowing user information to persist across
multiple user connections
When an application stores an object in or removes an object from a session,
the session checks whether the object implements HttpSessionBindingListener.
If it does, the servlet notifies the object that it has been bound to or
unbound from the session.
</info>
Additionally, you can refer to Java Servlet programming - Jason Hunter, the
chapter on
Session Tracking API.
Hope this helps.
regards
Saifi Khan.
-----Original Message-----
From: Bryce Marshall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 6:50 PM
To: [EMAIL PROTECTED]
Subject: Application and Session Event Handlers
Hi
A quick question: Is it possible for JSP developers to handle Application
and Session On-Start and On-End events?
Thanks,
Bryce Marshall
HomeDirectory.Ltd
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
This e-mail and any files transmitted with it are for the sole use
of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message. Any unauthorised review, use, disclosure,
dissemination, forwarding, printing or copying of this email or any action taken in
reliance on this e-mail is strictly prohibited and may be unlawful.
Visit us at http://www.cognizant.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets