Problem: IE not recognizing Excel data generated by cocoon as being an Excel
spreadsheet.
1) This is due to a bug in HSSFSerializer.java, where the mime-type is hardcoded as
vnd.ms-excel
(the correct mime-type for Excel is application/vnd.ms-excel). Once this is fixed
it works fine
with
correction:
I got it working by adding the following line in my generator:
response.setHeader(Content-Disposition, inline; filename=output.xls);
..but having to hard-code a parameter name in my generator as well as my
sitemap leads to a potential consistency problem.
Any better ideas?
TIA
From: Shaw, Chris [mailto:[EMAIL PROTECTED]]
correction:
I got it working by adding the following line in my generator:
response.setHeader(Content-Disposition, inline;
filename=output.xls);
..but having to hard-code a parameter name in my generator as well as
my
sitemap leads to a
This is is a known issue with various versions Internet Explorer. For
some reason it ignores the mime type and goes right for the file
extension. There are ways around this but none of them are pretty.
Bascially you need to try and architect your solution to cause the
filename to be