So, just to have the idea of what I've coded in the jsp:
When I submit one file, the upload progress is successfully updated within the div. I can actually see 0%, 5%,...25%,..56%...82%... 100%
The thing is that, for some unknown reason (to me), whenever I submit more than one file, the div isn't updating with the progress of each file... it's just updated sometimes 'twice': when the first file has been submited, and when a file (1st, 2vd, 3rd, ...) has been uploaded.
Mmm.. so, How does upload multiple files work?
The ajax call to get the upload percent, is being called every second. What happens when I call the servlet 'A' with AJAX, and in the middle of this I called one more time servlet 'A' (in this 2nd time I track another progresslistener)? Does the first request stop serving? Any ideas how to show the upload progress of each file if I'm using a form and iframe per file?
Recently there was a discussion on this topic. You can find it here . Also searching the Servlet and JSP forums will bring more results to you. Lastly this question does not relate to servlets, maybe its related to Ajax. Anyways one of the moderators will move it to its proper place.