Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set values in a JSP from DTO

843840Nov 21 2007 — edited Nov 26 2007
My 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}"/>&nbsp;</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}"/>&nbsp;</td>
<c:forEach items="${dto.subList}" var="item" varStatus="count">
<c:set value="${dto.marksList}" var="item"/>
&nbsp;</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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 24 2007
Added on Nov 21 2007
2 comments
580 views