How to set values in a JSP from DTO
843840Nov 21 2007 — edited Nov 26 2007My requirement is to print matrix report of students and their subject markets
Student Name | Sub1 Sub 2 ...........
Std Name1
Std Name 2
That is printing subject names horizontally and student names vertically.
<c:forEach items="${dto.subList}" var="item" varStatus="count">
td><c:out value="${item.sub_name}"/> </td>
</c:forEach>
<tr>
<c:forEach items="${dto.StudentsList}" var="item" varStatus="count">
<c:set value="${count.count}" var="totalstudents"/>
<tr class="odd">
<td><c:out value="${item.student_name}"/> </td>
<c:forEach items="${dto.subList}" var="item" varStatus="count">
<c:set value="${dto.marksList}" var="item"/>
</td>
</c:forEach>
</tr></c:forEach>
i have done upto this part. wat i need is for each student it needs to check sub1 and soon and put that marks in that sub place