Re: can't download excel file correctly

2011-10-19 Thread raygrrr
Hi Brian, Nate, You guys are right, it is exactly the case you guys described!!! Thanks very much!!! On Thu, Oct 20, 2011 at 12:44 AM, Sarr, Nathan-2 [via Struts] wrote: > Is there any chance this is an .xlsx (office 2007) and not an xls document? >  .xlsx documents are really zip files.  If this

RE: can't download excel file correctly

2011-10-19 Thread Sarr, Nathan
Is there any chance this is an .xlsx (office 2007) and not an xls document? .xlsx documents are really zip files. If this is the case then your content type would be different as well. I believe the .xlsx is: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet Hope this helps.

Re: can't download excel file correctly

2011-10-19 Thread raygrrr
Hi Brian, Thanks for your reply, I removed some unnecessary code - the 'fileName' variable is fine. I will try to rename it tomorrow - but I don't think it will work as I can unzip the actionClassName.zip file and it isn't the file... will show you that tmr :) Ray On Thu, Oct 20, 2011 at 12:27

Re: can't download excel file correctly

2011-10-19 Thread Brian Thompson
If you rename actionClassName.zip to actionClassName.xls, can you open it in Excel? Where is the 'fileName' variable defined? Brian On Wed, Oct 19, 2011 at 4:17 AM, raygrrr wrote: > Dear Experts, > > I have this action class to perform file downloading function, however, it > doesn't export