struts配置导出表格
程序员文章站
2022-03-06 19:04:28
...
公司的老系统,用的struts,遇到文件导出,正好留下配置
<action name="query" class="com.ailk.ecs.ssp.action.mobilecancel.MobileCancelAction" method="getTenMobileCancelData">
<result name="success" type="stream">
<param name="contentType">application/vnd.ms-excel;charset=ISO8859-1</param>
<param name="contentDisposition">attachment;filename=${fileName}</param>
<param name="inputName">inputStream</param>
</result>
</action>