hello java experts. my problem is that all any file(zip,txt,exe) in reside in server. user wanna download thats file by webpage(jsp/servlet). if download complete so server or servlet will know download complete. or not trace it not completed.
There is code in there that streams images from the WEB-INF directory to the client. That should get you started.
If you need to stream files that reside outside of your webapp, you may want to use a BufferedFileReader. The example uses a ServletOutputStream (which will work well if the app is being run from an unpacked war file).