I'm trying to use jXLS to export data from a list to an Excel sheet. I need to create an Excel template using jXLS and print out a list of data using that template. I have a Bean class called Department and I need to use a forEach statement to loop through the list and write data to the Excel sheet.
Can someone please tell me how and where I can write my Excel template? I know my code inside should look something like this -
<jx:forEach items="${departments}" var="department">
${department.name} | ${department.chief}
</jx:forEach>