Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Servlets
Http Header Question #2
Shane Burgel
Ranch Hand
Posts: 47
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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>
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Please help with response.getoutputStream
File download servlet
download attachment
Download File with Force Association
HTTP Header question
More...