Menu

export filename option, help!

Help
Robert
2007-06-28
2012-10-09
  • Robert

    Robert - 2007-06-28

    I want to use the export filenames I specify in my jsp; but of using the specified filenames in the setProperty tag (data.xls or data.csv), it uses the value in the requestURI. I can not figure out it at all. Please help!

    here is my jsp:

    <display:table name="${result}" id="result" class="ApptableDisplayTag" export="true" requestURI="/searchResults.do" pagesize="2">
    <displaytag:setProperty name="export.excel.filename" value="data.xls" />
    <displaytag:setProperty name="export.csv.filename" value="data.csv" />
    <display:caption>This is the table caption</display:caption>
    <display:column sortable="false" title="Keys of Defective Records"> <c:out value="${result}"/></display:column>
    </display:table>

     
    • Robert

      Robert - 2007-06-28

      I got the answers; it is my typo after all! Thanks to Yannick for pointing out. It should be
      display:setProperty... not displaytag:setProperty

      duh?

       

Log in to post a comment.