Saturday, September 4, 2010

CSV file displays on IE instead of Excel

In order to display the CSV file in excel, add the following MIME mapping to web.xml.
<mime-mapping>
     <extension>csv</extension>
    <mime-type>application/octet-stream</mime-type>
 <mime-mapping>
<mime-mapping>

<extension>CSV</extension>
<mime-type>application/octet-stream</mime-type>
<mime-mapping>

No comments:

Post a Comment