consider db returns like this
roll-no:10csu001 student_name:aravind presentabsent:p,p,p,p date:10/4/2013
roll-no:10csu001 student_name:aravind presentabsent:p,p,p,p date:11/4/2013
roll-no:10csu002 student_name:azhar presentabsent:p,p,a,p date:10/4/2013
roll-no:10csu002 student_name:azhar presentabsent:p,p,a,p date:11/4/2013
<logic:iterate id="vStudentList" name="reqStudentAttendanceList"
type="form.StudentForm" scope="request" indexId="i" >
<td>
<span>
<bean:write name="vStudentList" property="roll_no"/>
</span>
</td>
<td>
<span>
<bean:write name="vStudentList" property="student_name"/>
</span>
</td>
<td>
<span>
<bean:write name="vStudentList" property="presentabsent"/>
</span>
</td>
this will let me too have o/p like this
10csu001 aravind p,p,p,p 10/4/2013
10csu001 aravind p,p,p,p 11/4/2013
for every date so instead i would like to print like this
10csu001 aravind p,p,p,p 10/4/2013
p,p,p,p 11/4/2013
how can i iterate in it?