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>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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>
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?