Register / Login
Win a copy of
Java Mock Exams (software)
this week in the
Programmer Certification (OCPJP)
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
posted 5 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\"");
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
Boost this thread!
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