Szczepan Faber wrote the following on 1/17/2006 7:58 AM:
I made nice servlet (Struts action actually) that downloads xls (or
opens - depends what the users chooses).
headers:
response.setHeader("Content-Disposition", "attachment;
filename=report.xls");
response.setContentType("application/vnd.
I tried both - with sending cache (pragma + cache control) and w/o it. No
effect :)
My current owkward idea is that perhaps the xls content is somewhat wrong...
2006/1/17, Laurie Harper <[EMAIL PROTECTED]>:
>
> Another thing to check is what cache control headers you (or Struts) are
> sending, if
Another thing to check is what cache control headers you (or Struts) are
sending, if any. Some versions of IE incorrectly delete the downloaded
file before trying to open it in an external application if told not to
cache it. The only work around I'm aware of is to not send cache control
header
I tested it on 4 different PCees with XP :-)
The problem might be that all those pcees have company-wide win-xp
distribution.
I implemented simple workaround but I don't like it: I removed 'attachment;'
from content-disposition and now IE opens the excel in web browser window
rather than in Excel
I use a ContentType of "application/excel" and it seems to work OK. You
might try that in your environment.
> -Original Message-
> From: Szczepan Faber [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 17, 2006 7:59 AM
> To: user@struts.apache.org
> Subject: gone MAD with servlet / xls
I agree, it sounds like a configuration issue on your PC. Have you
tried it on a different PC? Possibly one not set up by the same
Corporate IT department?
-ed
On 1/17/06, Thomas Joseph <[EMAIL PROTECTED]> wrote:
> Try any/all of these:
> 1. WinXP + Firefox.
> 2. reinstalling Excel
> 3. save file
Try any/all of these:
1. WinXP + Firefox.
2. reinstalling Excel
3. save file and open
>
> Note that everything works on IE 6.0 (or firefox) in win2k (so I
> decided not to post any code samples) but opening file fails on IE 6.0
> in winXP
>
> What is wrong then?
>
> I tried plethora of differen
7 matches
Mail list logo