Now my upload, download, or a batch of progress of progress bar implementation ideas are like this:
Define a custom class that lists the total quantity, the number of finishes (there is a need to determine the success and failure of the decision)
Then, when the link is accessed, the session is stored in a custom class, and the custom class is stored with the initialization information. and perform the action
When the link is accessed asynchronously Ajax gets the current progress, gets the custom class in session, the timer AJAX achieves the real-time update progress effect.
File upload using a commons-fileupload of a listening component, in the listening method can be achieved upload success size
File write cache Words This mode feel can, download the progress bar idea now not:
The deal is Try{}catch (Exception e) {}
About file upload download and other progress bar implementation