after you have written some bytes using the PrintWriter object, you can use
out.checkError() : Boolean which flush the buffered content and sees if
something wrong happened returning true or false.
-----Original Message-----
From: Rogatkin, Dmitry M [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 18, 1999 4:03 PM
To: [EMAIL PROTECTED]
Subject: How determinate that a browser stopped
We develop a chat servlet. The servlet is invoked by a chat applet and uses
standard request/response input and output streams to communicate with
applet, so until a chat is active, the servlet doesn't return. But if a
browser stops the applet, or a browser crashed, the servlet has no idea what
happened and can continue sending data. No any exception happens. Some trick
was found, like an attempt to read something from the applet (in such case)
can rise an exception, but it looks like a hacker's approach. Does somebody
know better solution?
Dmitry.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html