This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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

I agree. Here's the link:
subject: Http Header Question #2
It's not a secret anymore!