| Author |
Processing icon with simple jsp approach
|
Kishore Tulsiani
Greenhorn
Joined: Jan 15, 2010
Posts: 21
|
|
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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
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??
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56224
|
|
|
Moved to the HTML forum.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Biswa R Nayak
Greenhorn
Joined: Jan 19, 2010
Posts: 8
|
|
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
Joined: Jan 15, 2010
Posts: 21
|
|
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
Joined: Jan 15, 2010
Posts: 21
|
|
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
Joined: Nov 08, 2001
Posts: 15357
|
|
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
Joined: Jan 15, 2010
Posts: 21
|
|
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
Joined: Nov 08, 2001
Posts: 15357
|
|
Than use a setTimeout to remove it after a set period of time.
Eric
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
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
Joined: Jan 15, 2010
Posts: 21
|
|
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
Joined: Jan 10, 2002
Posts: 56224
|
|
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
Joined: Jan 15, 2010
Posts: 21
|
|
|
Can you please elaborate more on how can i do this with hidden iframe or other design.
|
 |
Kishore Tulsiani
Greenhorn
Joined: Jan 15, 2010
Posts: 21
|
|
|
anyone .. Can suggest approach using IFRAMES???
|
 |
Kishore Tulsiani
Greenhorn
Joined: Jan 15, 2010
Posts: 21
|
|
|
solved with the help of friends
|
 |
 |
|
|
subject: Processing icon with simple jsp approach
|
|
|