tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Arrow" <>
Subject <listener-class>
Date Tue, 07 Aug 2001 01:16:16 GMT
I added this to my web.xml file:


I put a HashTable in the class and add each session to the table every time
sessionCreated is called.  I'd like to be able to access the same instance
of com.mystuff.SessionListener that Tomcat is using from a jsp page.  (i.e.
want the JSP page to display a list of all the sessions in the hashtable.)

If I say:

<jsp:useBean id="test" scope="application"
class="com.mystuff.SessionListener" />

I'll get a new instance of the class right?  I want the SAME instance.
Anyway to do this?

View raw message