1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Jsp output

Discussion in 'Programming' started by miedah, Nov 23, 2011.

Thread Status:
Not open for further replies.
  1. miedah

    miedah New Member

    Joined:
    Nov 23, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    software developer
    Location:
    malaysia
    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>

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

    <tr>
    <td colspan="5"><strong>Sample footer</strong></td>
    </tr>
    </display:footer>
    <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.DefaultHssfExportView " />
    <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" />

    </display:table>


     
  2. miedah

    miedah New Member

    Joined:
    Nov 23, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    software developer
    Location:
    malaysia
    in HTML view, but not in pdf and excel
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
Thread Status:
Not open for further replies.

Share This Page