my dog learned polymorphism*
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
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with scheduling downloads
 
Similar Threads
download a csv file from jsp
Multiple file Download
Enable and disable the button while downloading
How to make sure the open/save dialog opens a new application instance ?
Save /Open option for file download