my dog learned polymorphism
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

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!