【问题标题】:what should be the response content type for excel fileexcel文件的响应内容类型应该是什么
【发布时间】:2013-07-29 07:59:54
【问题描述】:

我在一个基于 jsf+ JBoss Gatein 的项目中工作。在一个 UI 中,我们有 pdf 和 excel 格式的下载选项。作为对 pdf 的响应,将内容类型设置为“application/pdf”,工作正常。对于 excel,我将其设置为“application/vnd.ms-excels”。它与 MS excel 一起使用。开放式办公室和其他电子表格是否足够?或者是否有任何其他通用内容类型可用? (我尝试过“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”,但没有使用 MS-excel)

【问题讨论】:

    标签: download portlet content-type jsf-1.2


    【解决方案1】:

    application/vnd.ms-excel 适用于 excel 和 open office。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-25
      • 1970-01-01
      相关资源
      最近更新 更多