Search code examples
excelseamexport-to-exceljxl

How to specify the name of the generate file to the e:worksheet function


We use the jboss seam-->excel module integration for generating excel sheets using e:worksheet. But the downloaded file name comes out as ExportUsers.jxl.xls, I would rather see this as ExportUsers.xls. How do I customize this information.


Solution

  • filename attribute of the e:workbook tag

    <e:workbook filename="ExportUsers.xls" />
    

    Take a look at the Seam excel documentation.

    filename — The filename to use for the download. The value is a string. Please note that if you map the DocumentServlet to some pattern, this file extension must also match.