Register / Login
Win a copy of
The Little Book of Impediments (e-book only)
this week in the
Agile and Other Processes
posted 4 years ago
I searched a lot to create a "save as excel".
Add the values to excel sheet along with the creating the excel file.
I knew that creating excel file.when access this file,it
pop up a dialog box as "save as".
document.execCommand('SaveAs', false, "filename");
I tried in
using some code.
Can you please help me with the Struts2
<action name="saveas" method="saveAS" class="saveAsAction"> <result name="sendFile" type="stream"> <param name="inputName">savePreferences</param> <param name="contentType">xls</param> <param name="contentDisposition">attachment;filename="CUSTOMER.xls"</param> <param name="bufferSize">4096</param> </result> </action>
i tried in jsp
response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition", "attachment;filename=\"j.xls\"");
File download in struts2
downloading a file struts2
how to download a file in struts2
Problem in using "exportParameters" in struts2
struts2 file download from database