hi Alber..
i have try the method you mentioned,and it really works.:)
but i get a question about the sequency of the method run.i code a servlet includeing
HttpSession session = HttpServletRequest.getsession();
session.putValue("listenerobjcet",listener);
HttpSessionBindingEvent sessionbind = new HttpSessionBindingEvent(session,"listener");
session.removeValue("listener");
listenerobject is a instance of the class implements HttpSessionBindingListener.
but i found the valueBound( ) and valueUnbound( ) are both called when i run this
servlet.
why the valueBound ( ) method is also called ? The method putValue ( ) is coded before
the Constructor
of HttpSessionBindingEvent .:))
===========================================================================
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