Search code examples
exportdisplaytag

Displaytag export file is saving without extension


The file name only coming when saving the exported file, how can we have the .xls or .pdf to come by default when an excel or pdf on saving the file.


Solution

  • Inside the displaytag you can use the "export.excel.filename" property.

    <display:setProperty name="export.excel.filename" value="file_name.xls"/>