Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Http Header Question #2

 
Shane Burgel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic