Hi,

This is what you need:

response.setHeader("Content-disposition",
        "attachment; filename=\""+downloadFilename+"\"");

You should also set the content type:

response.setContentType(contentType);

Regards,
Daniel

On Thu, 3 Mar 2005, Marty Phee wrote:

> I've got a RawScreen that sends back an Excel spreadsheet.  The file
> coming back is the name of the servlet, ExcelExport.xls.  This causes a
> problem with IE.  I really need it to come back as different names like
> ExcelExport1.xls, ExcelExport2.xls...
>
> What's the best way to do this?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to