girish mokashi wrote:
>
> There is a method that can be used to detect whether
> the client has closed teh browser or pressed the stop
> or forward or back button.
> ...
> This is 100% reliable & works all the time.
>

 Are you asking or telling :-)?

 If you're asking, then the answer, as mentioned
earlier in this thread, is "No, no way to do what
you want 100% reliably in general, please check the
archives for a dicussions of partial solutions that
might meet your needs"

 Are you thinking PrintStream::checkError()? That
might help to detect if the client interrupted the
download, but it wouldn't help to detect if the client
closed their browser after viewing a page.

 In any case, in general, PrintStream::checkError() (or
trapping IOExceptions on the writes) won't detect a
interruption in the download reliably. Lots of things
can happen, including the response being buffered and
proxies confusing the issue.



-cks

___________________________________________________________________________
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

Reply via email to