> The solution seemed obvious: use an applet. And wow, look, applets are

> 

Hi David,

I've never done this using an applet.  But I've done something similar
(albeit using .NET and asp).  The basic idea is that you have a jsp page

containing a servlet.  The servlet basically looks like this:

<%
HttpSession session = request.getSession(true);
Vector messages;
int currentIndex = 0;
while (session.getValue("MessagesPending").equalsIgnoreCase("true")) {
        messages = (Vector)session.getValue("MessageVector");
        while (currentIndex < messages.getSize()) {
                out(messages.get(i));
                currentIndex++;
        }
        Thread.sleep(1000);
}

while (currentIndex < messages.getSize()) {
        out(messages.get(i));
        currentIndex++;
}

out("Finished");
session.putValue("MessageVector", null);
%>


Then in your processing step, access the session, put your messages in 
the MessageVector, set the MessagesPending to true, and voila! Your 
messages print on the screen.

Or something like that.

Good luck,

David


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to