• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to add a GIF to show progress of upload and remove it once process is completed.

 
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
consider this scenario:

A user uploads a file to the server. The file is quite big so it takes time to upload it. I would like to add a gif image that shows that a process is taking place (just like a progressbar gui) and remove it once the process is completed.

anyway, my solution for this is once the user clicks the browse button, the ACTION_1 will fw to the page with the gif image and REDIRECT to the ACTION_2 which will do all business of upload, once upload is done the fw will go to ACTION_3 which will remove the gif image. (?!?!?!)

wonder if I'm on the right track, cause it seems to complicated.
thanks for any pointer.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you Google "JSP please wait message" you'll see a number of techniques for doing this, most of them much less complicated than the one you describe.

For a long-running process where you want an actual progress report on how it's doing, use the technique this link:

http://www.onjava.com/pub/a/onjava/2003/06/11/jsp_progressbars.html

For lighter weight solutions, try these links:

http://www.velocityreviews.com/forums/t149718-jsp-quotplease-wait-quot.html
http://www.theserverside.com/discussions/thread.tss?thread_id=19453
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wonder if these techniques can work in principle. As long as the original HTTP request (the upload) is not finished, how could a response that generates an interim page be sent back?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic