Common file uploads, if you need to show progress bar, it is often implemented with Ajax to avoid page refresh. After groping, has compiled the pure JSP realization with the progress bar file uploads the processing, has the following characteristics:
1, the pure JSP code writes, can realize the single file uploads the processing.
2, with progress bar, upload the page without refreshing. The use of a more ingenious way to achieve no flush processing.
3, the code is much simpler than the Ajax method.
4, support the Chinese file name.
5, debugging through the Tomcat7.0, to support the Tomcat6.0 the following version, you need to simply modify the project Web.xml file, in which the servlet can be configured.
6, the code may exist some bugs, did not do rigorous testing. are not optimized for processing.
7, the download package is a project file, is in the STS debugging run. Please make some adjustments according to your needs.
The upload effect chart is as follows:
6, the specific download address of this resource is: http://download.csdn.net/source/3165489