I had the same problem and solved it by looking at the headers of a working
application (phpMyAdmin has excel export).
Using the following headers works for me:
//control cache, these make the difference
response.setHeader("Cache-Control",
"must-revalidate, post-check=0, pre-check=0");
response.setHeader("Pragma", "Public");
//these are xls specific
response.setHeader("Content-Disposition",
"attachment; filename=action.xls");
response.setHeader("Content-Type",
"application/vnd.ms-excel");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/