java - struts2下载excel
高洛峰
高洛峰 2017-04-18 10:45:38
0
3
766
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(3)
P粉073609592

Who can tell me why I can't see the content of these questions: - When struts2 downloads excel and uses struts2 to download files, I find that the fileName cannot be obtained in the download prompt box that opens. The related configuration of downloading excel in struts.xml is as shown in the figure: there is a private fileName variable name in the action, and there are also set and get methods. But download.

洪涛
 <param name="contentDisposition">attachment;filename="${fileName}"</param><param name="contentType">application/vnd.ms-excel,charset=ISO8859-1</param>
大家讲道理

Just add a piece of code and it’s ready

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template