Forums Register Login

Dojo Progressbar not working properly with Commons FileUpload

+Pie Number of slices to send: Send
I have been trying different examples on showing progress bar for file upload progress for couple of days.

Some of the different example were using libraries like Dojo,jQuery and just using plain AJAX with iframe method.

But unfortunately, however i try i'm not able to show the progressbar thingy at all although
the upload part is working good.

Following is the example with Dojo[dojo-release-1.0.3]

I'm using Servlet 2.5,commons fileupload libs, TomEE-plus-1.7. 0 & ant for building tool
in ubuntu 12.04 as the platform with firefox 32.

Here is the code (as it was in the site)

build.xml


web.xml


ProgressServlet.java


ProgressListener.java


TestServlet.java


If i choose a file of size 68MB, on page load the progressbar is seen
but stays at 0% all the time even after submttting the form.

On debugging, cant find error/bug here.

P.S This code can be seen CodeGuru: FileUpload Example

I cant find where I'm going wrong or is it some bug

Thanks in advance.

Sree
+Pie Number of slices to send: Send
Dear All,

I dont know what happened but this and other Dojo examples which I tried seem to work now.

Regards,
Sree
Climb the rope! CLIMB THE ROPE! You too tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1032 times.
Similar Threads
Queries not working with JTDS 1.25 and MS-SQLserver 2000, tables show for .DBO only
ANT does not use %CATALINA_HOME% to find servlet-api.jar on Windows 7 64 bit and build fails
Session in HTTPServlet
Struts2:NoClassDefFoundError for pdf parsing using itext
Which IDE support JSP 2.0
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:13:04.