I have a JSP page which has a link for downloading. I have to show a progress bar when the user clicks on the link till the download box appears.
I have enclosed this link in a FORM tag, and the action for this tag is a Servlet which does the downloading part. Now since the action is not the same JSP, the progress bar isnt getting closed even after the download box appears. I cannot redirect to JSP page from the action servlet since the page takes a long time to reload.
How can I stop the progress bar without reloading the page again ?
Also, it is possible to reload the page parallely before the download box appears ?
1: Click a link on the Jsp page to download to a CSV file.
2: After clicking this link, a progress animator should start till the download box appears.
3: The progress animator should get disabled once the box comes.
Now since the CSV downloading code is in a Servlet , we tried using AJAX for the same. But now the download box isnt coming. Following is the code sample we've tried.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop