my dog learned polymorphism*
The moose likes Servlets and the fly likes Detect if download completed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Detect if download completed?" Watch "Detect if download completed?" New topic
Author

Detect if download completed?

Steve Ford
Greenhorn

Joined: Apr 19, 2004
Posts: 20
I am using ServletOutputStream to send binary data to a user. Is it possible to detect if the download has completed, and the user has NOT canceled the download while it was in progress?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I believe you would recieve some sort of broken stream exception if the user closes the browser before the download is complete.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
jQuery in Action, 2nd edition
 
subject: Detect if download completed?
 
Similar Threads
How to close the popup window automatically after download completes
how to detect change of Text Size
Can we detect if a user clicks on Stop using javascrpt? pls help, I'm stuck!
Automatically detect a need for Downloading Flash and popup a dialog box
javascript url replacing without the protocol