This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Http Header Question #2  RSS feed

 
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>
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!