title: How to write a jXLS template and where to write it
body: <p>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. </p>
  
  <p>Can someone please tell me how and where I can write my Excel template? I know my code inside should look something like this - </p>
  
  <pre><code>            &lt;jx:forEach items="${departments}" var="department"&gt;
                  ${department.name} | ${department.chief}
              &lt;/jx:forEach&gt;
  </code></pre>