akashmaheshwari wrote:
> 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
>
Whether you can tell or not depends on what servlet engine you are running,
and how buffering is being handled, as well as whether HTTP/1.1 is being used.
The indication you would get is an I/O exception when writing to the output
stream or writer, but in many cases the factors above will mean that the
actual exception often happens so late that your servlet probably won't see
it.
Craig McClanahan
___________________________________________________________________________
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