Click to See Complete Forum and Search --> : How to create a statusbar in JSP


polarn
September 17th, 2004, 01:31 AM
Is there any easy way to constructe a statusbar of a download in jsp?

Have a server/client application, when downloading data from client i would like to have a statusbar that indicates how much of the data that have been transfered. Using a BufferedInputStream where i read package of bytes.

Thanks in advance!!!

Thingol
September 17th, 2004, 03:40 PM
a) You could write an applet or an ActiveX Control that downloads the data sent by the JSP, and make the applet show the status bar.
b) Don't bother about it, simply set the content-length correctly (in practice it could be very difficult to do!), and leave the task of showing the percentage of bytes downloaded to the browser.