> 
> * There are also other listeners that you should
>   explore which are available in this version -- did
>   you know, for example, that you can be notified
>   whenever anyone else in your app adds, removes,
>   or replaces an application or session scope attribute?
>   (In Servlet 2.4 you can do this for request scope too.)

You mean something like:
        <listener>
                <listener-class>
                ...presentation.util.SessionObjectPrintln
                </listener-class>
        </listener>

public class SessionObjectPrintln implements HttpSessionBindingListener{

        public void valueBound(HttpSessionBindingEvent e) {
                System.out.println("Value bound:"+e.getName()+",
"+e.getSource());

        }

        public void valueUnbound(HttpSessionBindingEvent e) {
                System.out.println("Value unbound:"+e.getName()+",
"+e.getSource());

        }
}

Tried it with resin 3.0.8 and tomcat 5.0.25,28, neither worked :-(



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to