Sudarson_Pratihar wrote:
>
> Is there any way to detect browser stop?

No. It's been a while since we had this discussion here, but the answer
is still the same: the browser does not notify any server when the
browser is stopped or exited. You might want to check the archives to
review past discussions on this topic.

> So that if a user clicks the
> browser stop, the servlet at the server side can be destroyed.

You don't want to do this anyway. The servlet is a server resource and
should generally be available as long as the server is running. The best
way to deal with this situation is just to catch the IOException that is
thrown when the servlet tries to send the response to the client; since
the client no longer wants the response, there's really nothing else to
be done.

___________________________________________________________________________
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