This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Http Header Question #2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Http Header Question #2" Watch "Http Header Question #2" New topic

Http Header Question #2

Shane Burgel
Ranch Hand

Joined: Sep 09, 2003
Posts: 47
I have a file with the following headers:

Content-Disposition=attachment; filename=myDownload.txt

Is there a way I can specify a header to say that the default download directory should be say C:\Temp ?

Thanks for your help
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
why don't you use init param in servlets to specify the default direcotry?

Following is the code

jQuery in Action, 2nd edition
subject: Http Header Question #2
Similar Threads
Please help with response.getoutputStream
HTTP Header question
File download servlet
Download File with Force Association
download attachment