Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of
Clojure in Action
this week in the
posted 3 years ago
I searched a lot to create a "save as excel".
Add the values to
sheet along with the creating the excel file.
I knew that creating excel file.when access this file,it should 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\"");
I agree. Here's the link:
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