I'm using POI to write in an excel file.But I cannot open the excel file outside the IE.
How can I solve the problem?
Thanks a lot.
Make sure that whatever servlet or JSP you are using to serve up the Excel file sets the content type (MIME type) to "application/vnd.ms-excel".
After you create the file using POI,stream this to the response, and set the following:
You can give some file name in the Content-disposition header.
This will make the browser to prompt, whether to open or save the file.
Pls try adding the following lines to your web.xml file