[thelist] Anyway to set filename through response header?
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Wed Aug 18 13:57:19 CDT 2004
Hi again,
Here's how you do it in ASP/VBScript:
Response.AddHeader "Content-Disposition", "filename=" & FileName
You'll have to change it to use whatever your platform does to
add headers, but the name/value pair should be the same.
Peter
-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of Chris Johnston
Hello,
One more question concerning response headers. I am using struts and
java to server up an excel file. However, when the user gets the file
(which currently opens in their browser) the file is called
createReport.do. Is there anyway, using the response header, to change
the filename to foo.xls?
--
chris johnston
www.fuzzylizard.com
"For millions of years, mankind lived just like the animals and
something happened which unleashed the power of our imagination, we
learned to talk." Pink Floyd
More information about the thelist
mailing list