Hi.

I have the following problem (using tomcat version
3.1).

I have multiple frames in my front end.  I am
listening for asynchronous messages coming across a
socket from an exogenous server process.  In order to
receive these messages and display them I use a repost
to a servlet.  I have a threaded socket listener which
is instantiated in a servlet, bound to the session
object to keep it alive and accessed by the jsps (I
don't know if this is a reliable mechanism but for the
moment I'm implementing it).

I have a bottom frame which contains the forms
submitted and it is the hub of control.  It displays
all messages to the user, with the exception of one
kind, which should cause the main frame to be updated
and a status table to be shown to the user.  However,
the main frame is unable to access beans -because only
the bottom frame is actually forwarded to by the
RequestDispatcher, therefore it is the only one which
can access the bean successfully (at least this is
what my attempts seem to prove- for example, I popup
the session id in each of the frames and the only one
which matches the servlet's session id is the bottom
frame).

Does anybody know how I could get the main frame to
also access the same instance of the socket-listening
bean? (i've tried using jsp:usebean with session as
scope and although this works for the bottom frame, it
doesn't for the main one)

>From the bottom frame I could set a hidden variable in
the main frame using javsacript, but is displaying
this in the form of a table possible (I believe that
JSP scriptlets cannot access html variables, so for
example, if the list to be displayed was 8 long, how
would the scriptlet know that?)

Does anyone have any suggestions about how to do this?


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to