Struts2 + Ext上传文件时弹出下载框提示下载的解决办法

action的配置文件(xml文件)的相应action中加上<param name=” contentType”>text/html</param>

 

<action name="ImportBTSAction" class="cn.mastercom.bis.bts.BtsMngAction" method="importBTS">
		<result type="json">
			<param name="includeProperties">success,result</param>
			<param name="contentType">text/html</param>
		</result>
</action>
 

你可能感兴趣的:(html,json,xml,ext)