You'll want to do set a header in your response like this:
response.setHeader("Content-Disposition","attachment; filename="+fileName); HTH Collin 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.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]