Help coderanch get a
new server
by contributing to the fundraiser
  • 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

progress bar and timeout functionality for file upload

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am uploading a file using commons file-upload.
I will upload the file on the server, do some processing on the file data, persist into database and then send a response back to user with file uploaded successfully with or without errors.
If error occurs i need to delete the file from the server and remove some rows from the database.

While uploading and processing the file on the server i need to show the user some modal dialog box which will give the progress bar or at least a gif image with "Processing..." kind of text. The important point, I need to show the dialog while Uploading and PROCESSING the file. I also need to timeout the upload request if uploading and processing takes more than 3 mins.

I am not sure how can i send a request on the server still show some dialog on client side while processing is going on server?
Any code will definitely help...

Thanks...
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See https://coderanch.com/t/364667/Servlets/java/Inremediate-page-while-processing
 
Karan Jain
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot for the quick reply...
I think i am looking for this kind approach only but i need to show the main window too and on top of it i need to show this dialog (of maybe a small window) saying processing... and when this small window is open you should not able to go to the main window (modal functionality).
Can this can also be achieved?
Else i will use your approach showing an intermediate page...

thanks!!!
 
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic