File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Processing icon with simple jsp approach

 
Kishore Tulsiani
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers

I have a simple jsp page with several input parameters. on submit of the jsp page i am using the parameters inputed by user and generating one excel file as a result and user gets the file download popup as response.

What i have done is after submit i am redirecting to a jsp page where i have wrtten a code to give the download popup to a user.

After submit i am starting some processing indicator(GIF image, i am usign java script to show some gif before form submission ) on the jsp page that some processing is going on becuase it is taking 2-3 minutes to generate file and give response.

problem here is how should i stop the procssing GIF after i get the download popup becuse i am redirecting to a jsp where code to download file is written ... what am i doing wrong??

Regards
Kishor
 
Ankit Garg
Sheriff
Posts: 9496
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy Kishore, welcome to javaranch.

Kishore, when you post the same question somewhere else, you should Be Forthright When Cross Posting To Other Sites.

after submit i am redirecting to a jsp page where i have wrtten a code to give the download popup to a user.
i am starting some processing indicator ... on the jsp page
problem here is how should i stop the procssing GIF after i get the download popup becuse i am redirecting to a jsp where code to download file is written

I'm not sure if I understood your problem completely. What exactly do you mean by download popup?? Also is this page where you are showing download popup the same page where the gif image is getting displayed??
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64180
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the HTML forum.
 
Biswa R Nayak
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i understand well, You want to stop the GIF in your re-directed page once you are done loading the page. May be you can use label/div to show or hide your gif. if you popup is showing onload, you can write the hide gif code on page onLoad.

Hope this helps.
 
Kishore Tulsiani
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have simple jsp page with text boxes as user inputs, when user hits submit button on top right corner processing gif is shown on same page.

so after submit action the response is redirect to a jsp where i have written the code to download a file. there is no page redirect for user, user gets the download file popup on the same page where he/she hit submit. but as repose is redirected to download.jsp how to stop that processing icon gif.

Regards
Kishore
 
Kishore Tulsiani
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Garg wrote:Howdy Kishore, welcome to javaranch.

Kishore, when you post the same question somewhere else, you should Be Forthright When Cross Posting To Other Sites.

after submit i am redirecting to a jsp page where i have wrtten a code to give the download popup to a user.
i am starting some processing indicator ... on the jsp page
problem here is how should i stop the procssing GIF after i get the download popup becuse i am redirecting to a jsp where code to download file is written

I'm not sure if I understood your problem completely. What exactly do you mean by download popup?? Also is this page where you are showing download popup the same page where the gif image is getting displayed??


This shows i am new to java ranch .. will take care of this
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kishore Tulsiani wrote:I how to stop that processing icon gif.


What browser are we taling about. We have a billion to choose from here. Are you talking about the icon in the browser chrome [aka window toolbar]? I do not think there is anything you can do about that.

Eric
 
Kishore Tulsiani
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
before submitting the jsp page , i am starting on gif image using java scritpt so that user can come to know something is happening ..

but as repose is a download file .. i am not able to hide that gif image.. where to execute that java script to hide the gif image... as response from the server is redirect to a jsp which gives download file popup??
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Than use a setTimeout to remove it after a set period of time.

Eric
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need to show us some basic code on how this is all working. Right now it makes no sense.

Eric
 
Kishore Tulsiani
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
finally the detailed desc of my prob with sample code...




on sumbit validatemqform shows the processingicon so processing.gif is visble on the right top of the page....

server redirects to download.jsp below... and user gets the popup to save the file... but now how to hide that processingicon div again ???


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64180
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WHy is that code in a JSP rather than a servlet. Sloppy!

You cannot get any type of notification when the file is downloaded. You'll need to change your design. Perhaps submit to a hidden iframe.
 
Kishore Tulsiani
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please elaborate more on how can i do this with hidden iframe or other design.
 
Kishore Tulsiani
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone .. Can suggest approach using IFRAMES???
 
Kishore Tulsiani
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
solved with the help of friends
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic