"Bommakanti, Vamsee" wrote: > > How do i do this if is have only JSP pages and no servlet pages >
You can configure some of the session listeners in you web.xml using the <listener> element. It will work for all the servlets (and thus JSPs) in your webapp. Check the "SRV.10.4 Deployment Descriptor Example" section of version 2.3 of the servlet spec for an example. You can download the spec from: http://java.sun.com/products/servlet/download.html It'll be something along the lines of: public class SAListener implements HttpSessionAttributeListener { public void attributeAdded(HttpSessionBindingEvent se) { System.out.println("SAListener.attributeAdded():name="+se.getName()); System.out.println("SAListener.attributeAdded():valu="+se.getValue()); } ... } and then in your web.xml: <web-app> ... <listener> <listener-class> SAListener </listener-class> </listener> ... </web-app> -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
