File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes File Download - any way to prevent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "File Download - any way to prevent "Open from current location"" Watch "File Download - any way to prevent "Open from current location"" New topic
Author

File Download - any way to prevent "Open from current location"

Monty Guppy
Ranch Hand

Joined: Sep 15, 2001
Posts: 49
Hi,
I have a servlet that works fine for downloading excel files. However, while download, I get the usual DialogBox which asks me to choose between "Save to Disk" or "Open from current location". Is there a way by which I can force my user to only be able to "Save to Disk" and not able to open from current location.
Further - is there a way by which I can setup a default location for the downloaded file to reside at? If so, what happens if the user doesn't have the folder structure on his machine? Does it create that folder structure?
Thanks
Ken Shamrock
Ranch Hand

Joined: Jan 23, 2002
Posts: 139
I also have a question on it, when the user click on the files, how can it be automatically saved to the HD instead of popping up the "Save it or open it" window? I think the only way is to use Applet?


Thanks everyone who helped me
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Download - any way to prevent "Open from current location"