aspose file tools*
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
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>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Http Header Question #2