Access an "application scope" object from a java bean
843840Jan 28 2003 — edited Jan 28 2003hi
i use an HashMap object named Monitor, this object is create with an application scope
<jsp:useBean id="monitor" class="java.util.HashMap" scope="application"/>
each time a new user connect to the web application, a new UserParameter object is created and stored in monitor. when the user deconnect or the session timeout is reached, i want to remove from monitor, the reference of the UserParemeter object. to do that the class UserParameter impelmente the HttpSessionBindingListner, and in the methode valueUnbound(...) i want to remove the object but i don't know how to reach the "monitor" object wich is in the application (ServletContext), i have only access to session.
Thanks for your help