How do I pass reference of a global hashtable to a java bean?
Posted on 2003-02-27
Please help with this:
I have A.jsp which has a application scope Hashtable as below
<jsp:useBean id="user" scope="application"class="java.utilHashtable"/>
I have a java bean B.java which is supposed to remove the loginName when session expires.
C.jsp is supposed to retrieve the hashtable data from B.java and display in the browser for the currently logged on users.
My question I
1. how do I pass hashtable object from A.jsp to the bean B.java so that it can manipulate it? Or How do I establish a reference of the Hashtable(A.jsp) in B.java?
2. How do I retrieve the hashtable from B.java so that it can be displayed in C.jsp?
Thanks a lot,