<action name="fileDownload" class="DownloadAction" method="download">
<result name="success" type="stream">
<param name="contentType">text/plain</param>
<param name="contentDisposition">attachment;fileName="${fileName}"</param>
<param name="inputName">downloadFile</param>
<param name="buferSize">10240</param>
</result>
</action>
对文件名的处理
fileName = new String((URLEncoder.encode(<span style="font-family: Arial, Helvetica, sans-serif;">fileName </span><span style="font-family: Arial, Helvetica, sans-serif;">, "UTF-8")).getBytes("UTF-8"), "GBK");</span>
有点麻烦,但也总算解决了