分類  >  Web前端 >

關於weblogic停靜態頁面下載文件(配置mime類型)的疑問!

tags:    時間:2013-12-10 00:11:18
關於weblogic下靜態頁面下載文件(配置mime類型)的疑問!!!
第一、修改文件類型處理只需修改站點下,也就是WEB_INF下的web.xml文件即可  (a)、下載      <mime-mapping>         <extension>zip</extension>         <mime-type>application/zip</mime-type>     </mime-mapping>     <mime-mapping>         <extension>rar</extension>         <mime-type>application/rar</mime-type>     </mime-mapping>     <mime-mapping>         <extension>exe</extension>         <mime-type>application/octet-stream</mime-type>     </mime-mapping>     <mime-mapping>         <extension>iso</extension>         <mime-type>application/octet-stream</mime-type>     </mime-mapping>      <mime-mapping>         <extension>doc</extension>         <mime-type>application/doc</mime-type>     </mime-mapping>  (b)、打開  如果想要在IE中自動打開DOC,XLS,PDF文件的配置如下:  <mime-mapping>  <extension>doc</extension>  <mime-type>application/msword</mime-type>  </mime-mapping>   <mime-mapping>  <extension>xls</extension>  <mime-type>application/msexcel</mime-type>  </mime-mapping>   <mime-mapping>  <extension>pdf</extension>  <mime-type>application/pdf</mime-type>  </mime-mapping>  轉載:http://www.blogjava.net/songfei/articles/122120.html

 

推薦閱讀文章

Bookmark the permalink ,來源:互聯網