There are already a few answers already, but I have a point to add here.
If writing to a PrintWriter, the servlet will not get any exception even if
the client has stopped listening to the server. Also if the server buffers
the output, the point when the exception is thrown may be too late to do
anything.
Try to check error on the output using 'out.checkError()'. If it returns
true, then stop writing.
Ganesh
----Original Message Follows----
Hi all,
i am wondering how do i know that some body had
clicked stop button on browser.
Actually as soon as sombody clicks stop button the
thread in the servlet stop executing .
in my service method of servlet i setting a flag.
i want to do flag = false when sombody clicks the
stop button or when service method is over.
any clue please
akash
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
___________________________________________________________________________
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