How can I create a file uploader using JSP and ser

2019-06-14 17:21发布

问题:

Recently I thought of creating a file uploader using JSP/Servlet. In the JSP page there will be a link. On clicking the link corresponding action class is called. So when the upload starts I must get the info status on my JSP page. But if the link is clicked again I must show that some message like one import is already running.

Is something like this already available? I don't want to reinvent the wheel.

回答1:

One of the Jquery File Upload

http://www.phpletter.com/Demo/AjaxFileUpload-Demo/

You may find many more examples if you google it



回答2:

Jquery has a bunch of file upload javascript libraries. Google it and see for yourself. JQuery is super simple to work with and works with Servlet libraries like Struts. Hope this helps!