日期:2014-05-17 浏览次数:20591 次
<action name="upload" class="com.jungle.action.PostAction">
<interceptor-ref name="fileUpload">
<param name="maximumSize">5242880</param><!--单个文件 5兆-->
</interceptor-ref>
<interceptor-ref name="defaultStack"></interceptor-ref>
<result name="upLoad">
/back/postManage/uploadSuccess.jsp
</result>
<!-- 下载 -->
<result name="download" type="stream">
<param name="contentDisposition">
attachment;filename="${newname}"
</param>
<param name="bufferSize">1024</param>
<!--<param name="inputName">inputStream</param>-->
</result>
</action>