<%response.setHeader("Content-Disposition", "attachment;
filename=\"filename_${fromDate}-${toDate}.doc\""); %>
The above is what I currently have but I think there is a new way to
do it that doesn't involve using a scriptlet. Also, the "fromDate" and
"toDate" items don't work. I've tried quoting them but I'm not sure I
got it right. They are used later on in the document, so I know I am
getting them.
I've tried these two combinations for quoting:
<%response.setHeader("Content-Disposition", "attachment;
filename=\"filename_"${fromDate}"-"${toDate}".doc\""); %>
Results in a file named: "filename_${fromDate}-${toDate}.doc"
<%response.setHeader("Content-Disposition", "attachment;
filename=\"filename_\"${fromDate}\"-\"${toDate}\".doc\""); %>
Results in a file named: "filename_.doc"
Clues?
Jim C.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]