title: Converting from nested <c:forEach> to <display:table>
body: <p>I have the code below that I want to convert to &lt;<code>display:table&gt;</code>, but I am not sure how to display the content of the second <code>&lt;c:/forEach&gt;</code>. 
  Basically, my table displays students and enrolments related to them. Each student contains a list of enrolments. Each pair one one student and one enrolment should be displayed in a new line.</p>
  
  <p>I tried a few things, but the results were not what I expected. Any ideas would be appreciated.</p>
  
  <p>my original code:</p>
  
  <pre><code>&lt;c:forEach var="student" items="${students}"&gt;
                          &lt;c:if test="${not empty student.enrolments}"&gt;
                              &lt;c:forEach var="enrolment" items="${student.enrolments}"&gt;
                                  &lt;tr class="even_row"&gt;
  
                                      &lt;td class="detail_l"&gt;${student.familyName}&lt;/td&gt;
                                      &lt;td class="detail_l"&gt;${student.firstName}&lt;/td&gt;
                                      &lt;td class="detail_l"&gt;&lt;fmt:formatDate
                                          value="${student.dateOfBirth}" pattern="dd-MM-yyyy" /&gt;&lt;/td&gt;
                                      &lt;td class="detail_l"&gt;${student.sexCode}&lt;/td&gt;
                                      &lt;td class="detail_l"&gt;
                                      &lt;a href="javascript:goToMenuOption('sisStudentUnits');"&gt;${student.studentNo}&lt;/a&gt;
                                      &lt;/td&gt;
                                      &lt;td class="detail_l"&gt;${enrolment.courseNo}&lt;/td&gt;
                                      &lt;td class="detail_l"&gt;${enrolment.enrolmentInstitution.instNo}&lt;/td&gt;
                                      &lt;td class="detail_l"&gt;${enrolment.firstEnrolmentYear}&lt;/td&gt;
                                      &lt;td class="detail_l"&gt;${enrolment.studentEnrolmentCode}&lt;/td&gt;
                                  &lt;/tr&gt;
                              &lt;/c:forEach&gt;
                          &lt;/c:if&gt;
                      &lt;/c:forEach&gt;
  </code></pre>
  
  <p>My conversion, that is not working (the ones that start with enrolment will cause errors on the jsp file. E.g.: Error looking up property "enrolment.courseNo"):</p>
  
  <pre><code>&lt;display:table name="students"&gt;
                  &lt;display:column property="familyName" title="Surname" /&gt;
                         &lt;display:column property="firstName" title="First Name" /&gt;
                         &lt;display:column property="dateOfBirth" title="Date of Birth" /&gt;
                         &lt;display:column property="sexCode" title="Sex" /&gt;
                         &lt;display:column property="studentNo" title="Student Number" /&gt;
                         &lt;display:column property="enrolment.courseNo" title="Course No (V/A)" /&gt;
                         &lt;display:column property="enrolment.enrolmentInstitution.instNo" title="College/Centre"/&gt;
                         &lt;!display:column property="enrolment.firstEnrolmentYear" title="Year"/&gt;
                         &lt;!display:column property="enrolment.studentEnrolmentCode" title="Enr. Status"/&gt;                  
                  &lt;/display:table&gt;
  </code></pre>
  
  <p>Thank you in advance,</p>
  
  <p>Thais.</p>