How to create file loader using JSP and servlet?

I recently thought about creating a file loader using JSP / Servlet. There will be a link on the JSP page. When you click on the link, the corresponding action class is called up. Therefore, when the download starts, I have to get the information status on my JSP page. But if the link is clicked again, I have to show that some message like one import is already running.

Is something like this already available? I do not want to reinvent the wheel.

-1
source share
2 answers

One of the jQuery download files

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

You can find many more examples if you google it

+1
source

JQuery has a bunch of javascript libraries for loading files. Google and see for yourself. JQuery is very easy to use and works with Servlet libraries such as Struts. Hope this helps!

0
source

Source: https://habr.com/ru/post/1384275/


All Articles