[prev in list] [next in list] [prev in thread] [next in thread]
List: turbine-user
Subject: Re: Response file name
From: Daniel <dantest () yorku ! ca>
Date: 2005-03-08 15:51:49
Message-ID: Pine.GSO.4.58.0503081050300.253 () sunlight ! ccs ! yorku ! ca
[Download RAW message or body]
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: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic