ISSUE :
 
Profile photo
Submitted by Cathy Hall
on August 3rd, 2012 at 15:22:35 EST

Export to Excel CSV format using Struts display tag


hi I am in the process of doing exactly similar like this in my project.
But when I download the file I am getting the empty list.
I have list coming in JSP just the export is problem which comes with 0 bytes file.
I am pasting my JSP for your reference.Any guidance is appreciated.

<display:table name="disReport" scope="request" export="true" >
<display:setProperty name="basic.msg.empty_list"
value="There are no data collection records to display at this time." />
<display:column property="patientNo" title="Patient ID" />
<display:column property="updateDate" title="Resolved Date" />
<display:column property="userName" title="Resolved By" />
<display:column property="intervalName" title="Interval Name" />
<display:setProperty name="export.excel.filename" value="ActorDetails.xls"/>
<display:setProperty name="export.pdf.filename" value="ActorDetails.pdf"/>
<display:setProperty name="export.pdf" value="true" />

</display:table>

Thanks,
Cathy


Profile photo
Replied by Yogaraj Khanal
on August 9th, 2012 at 11:22:30 EST
Change from request to session scope should work.