Pure JSP with progress bar no refresh file upload processing __jsp

Source: Internet
Author: User
Tags file upload

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.