how can i download file using struts
i came across the code below and applied in my project
<result name="success" type="stream">
<param name="contentDisposition">attachment;filename="fil eABC.xlsx"</param>
but the problem is I have my web page(.jsp) which displays a table of 5 columns using <s:iterator> in my jsp file.
I want a download link which will download the table content(that he current page is displaying) and export the records and save in an excel file. please help me.
the file which i want to download is not stored on the server. the table is displayed dynamically via jsp. how can i get the download pop up box without using fileInputStream
Thanks in advance.
Last edited by chaitali; February 10th, 2012 at 03:56 AM.