Click to See Complete Forum and Search --> : Setting File name in jsp


Shiv
08-11-2006, 08:58 AM
Hi All,

In my application Iam displaying the content in PDF format and saving them to the local machine as well.But while saving them to the local machine,iam not able to save with a particular name.Its taking the name of the action class by default.

Iam specifying a name in the header,but still no result.

response.setHeader("Content-disposition", "filename=\"CompositeFunds.pdf\"");

Does anyone knows how to specify the name to save the file?

Thanks
Shiv