Hi,
I am writing a simple chat servlet with JRun 3.0 on
Windows NT, which looks like this (doGet-Method):
response.setContentType("text/html");
out.println("<html><head><title>Chat</title></head><body>");
out.flush();
for (int i = 0; true; i++)
{
out.println("Hallo Bernhard " + i + "<br>");
System.out.println("Sending text " + i);
out.flush();
try { Thread.sleep(2000); } catch (InterruptedException e) {}
}
The problem is that I don't get any exception if the
client is not connected any more, so the loop does
not stop.
My question: Is there any way how I can determine in
JRun if the client has disconnected from the server
(like Response.IsClientConnected in ASP).
TIA
Bernhard
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.