怎么在tomcat的设置文件web.xml可读EXCEL文件?

04-04-19 lichuwen
怎么在tomcat的设置文件web.xml可读EXCEL文件?

如下设置下则可以在JSP页面直接打开WORD文件了,

< mime-mapping>

< extension>doc</extension>

< mime-type>application/msword</mime-type>

< /mime-mapping>

怎么配置打开EXCEL文件呢?

哪位有资料?

多谢告之

swordfly
2004-04-20 11:11
<mime-mapping>
 <extension>
     xls
 </extension>
 <mime-type>
  application/vnd.ms-excel
 </mime-type>
</mime-mapping>

<mime-mapping>
 <extension>
    csv
 </extension>
 <mime-type>
   application/vnd.ms-excel
 </mime-type>
</mime-mapping>
<p>

lichuwen
2004-05-04 17:30
谢谢告之!

我给客户做了个小的文件管理系统,原来不能在系统网页上直接打开EXCEL文件,现在可以了,再加如下一段则可以打开POWERPOINT文件了

<mime-mapping>

<extension>ppt</extension>

<mime-type>application/vnd.ms-powerpoint</mime-type>

</mime-mapping>

猜你喜欢