Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   Jsp output (http://www.go4expert.com/forums/jsp-output-t27205/)

miedah 23Nov2011 14:53

Jsp output
I have problem in export the footer and caption tag when exporting all the data from a table to excel and pdf..
the below is my coding;

<display:table name="${searchFixReportInfo}" id="row" class="dataTable" requestURI="" pagesize="20" style="width: 100%" export="true" >

<display:caption media="html">
<strong>A Caption</strong>

<display:caption media="excel pdf">A Caption</display:caption>
<display:footer media="html">

<td colspan="5"><strong>Sample footer</strong></td>
<display:footer media="excel pdf" >Sample footer</display:footer>

<display:setProperty name="export.excel" value="true" />
<display:setProperty name="export.excel.class" value="org.displaytag.export.excel.DefaultHssfExpo rtView " />
<display:setProperty name="export.excel.filename" value="data.xls" />

<display:setProperty name="export.pdf.class" value="org.displaytag.export.DefaultPdfExportView " />
<display:setProperty name="export.pdf" value="true" />
<display:setProperty name="export.pdf.filename" value="data.pdf" />


miedah 23Nov2011 15:16

Re: Jsp output
in HTML view, but not in pdf and excel

shabbir 23Nov2011 15:39

Re: Jsp output
Duplicate of Export footer and caption to excel/pdf. Thread closed.

Please avoid having the same thread more than once.

All times are GMT +5.5. The time now is 00:21.