struts2-codebehind-plugin

How to define the stream Result annotation?

和自甴很熟 提交于 2019-12-17 20:59:26
问题 I need to export the excel sheet, so calling action class method through Ajax call from dialog window. I have excel icon when I click the icon calling method and processing the backend data and finally going to execute the below code and return to result set to download the excel sheet. jQuery Ajax calling: function callajax() { jQuery.ajax({ url : '<s:url action="part" method="export"/>', Result set method: @Result(name="success",type=StreamResult.class,value="",params={"inputName",

How to define the stream Result annotation?

ぐ巨炮叔叔 提交于 2019-11-28 12:44:35
I need to export the excel sheet, so calling action class method through Ajax call from dialog window. I have excel icon when I click the icon calling method and processing the backend data and finally going to execute the below code and return to result set to download the excel sheet. jQuery Ajax calling: function callajax() { jQuery.ajax({ url : '<s:url action="part" method="export"/>', Result set method: @Result(name="success",type=StreamResult.class,value="",params={"inputName","inputStream"}) Java code: public String method { ----------------- method to call backend... ------------------