This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Http Header Question #2" Watch "Http Header Question #2" New topic
Author

Http Header Question #2

Shane Burgel
Ranch Hand

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

Content-Type=application/download
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

<init-param>
<param-name>dir</param-name>
<param-value>c:/Temp</param-value>
</init-param>
 
 
subject: Http Header Question #2
 
Similar Threads
File download servlet
Download File with Force Association
download attachment
HTTP Header question
Please help with response.getoutputStream