Two ways:
1. Applet that communicates with the server through
RMI
2. Hidden frame with JavaScript onUnload()
The desire to know when the browser is closed shows a
misunderstanding of HTTP protocol in general and the
way HTTP sessions are handled by servlet engines in
particular. If you're concerned about user navigating
away from your site and resources being consumed while
he's away, design your application in such a way that
resource management has a timeout feature. Resources
can be reacquired after they expire. Most if not all
servlet engines already support timeout for idle
sessions and using that feature along with
HttpSessionBindingListener should be plenty of ammo to
deal with this problem.
Alex
=====
mailto:[EMAIL PROTECTED] // Consulting svcs available for WebLogic sites
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.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