You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leon Rosenberg <st...@anotheria.net> on 2005/02/14 22:29:07 UTC
Re: Caching Appliction Level Data? (session listener)
>
> * 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org