sudip shrestha wrote:
I have a struts action that downloads binary files from the database: e.g.:
/actions/download.do?fileId=xxx, etc....
So, whenever users download any type of file with any id, the name of the
file displayed on any browser is "download.do",
is it possible to set something in the response, so that I can supply the
name of the file which the browser displays to the user so that it displays
such as xxx.pdf instead of download.do.
Add this response header :
response.setHeader("Content-Disposition","attachment; filename=\"" + yourfilename + "\";");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]