This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Problem with scheduling downloads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem with scheduling downloads" Watch "Problem with scheduling downloads" New topic
Author

Problem with scheduling downloads

visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122
Hai,

I kept a dowload hyperlink in a jsp page.When i click on the download link,it should give me two options-Download Now and Download Later.When i click on Download Now,the file should be saved to disk.If i click on Download Later,a dialog box should be displayed prompting user to enter time in seconds.When the user clicks ok,the download should start after the specified time.Can anyone help me out how to do this?

Thanx in advance,
Regards,
Visu N
Bimal Patel
Ranch Hand

Joined: Aug 29, 2003
Posts: 130
Hi,

I think for downloading right away, there is not problem. But for downloading after a specific time, you can put a kind of counter in javascript and after the counter reaches to the specified time, request the server for the specified resource to be downloaded.


Work Hard, Expect The Worst...<br /> <br />Bimal R. Patel<br />(SCJP 1.2, SCWCD 1.4)
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
When the user clicks ok,the download should start after the specified time.

What happy if the user leave that page?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by visu Nekk:
I kept a dowload hyperlink in a jsp page.When i click on the download link,it should give me two options-Download Now and Download Later.When i click on Download Now,the file should be saved to disk.If i click on Download Later,a dialog box should be displayed prompting user to enter time in seconds.When the user clicks ok,the download should start after the specified time.Can anyone help me out how to do this?


The best solution for this would a download manager application at the client end.
[ February 06, 2006: Message edited by: Adeel Ansari ]
 
 
subject: Problem with scheduling downloads