File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Detect if download completed?
 
Similar Threads
Can we detect if a user clicks on Stop using javascrpt? pls help, I'm stuck!
how to detect change of Text Size
javascript url replacing without the protocol
How to close the popup window automatically after download completes
Automatically detect a need for Downloading Flash and popup a dialog box