posted 15 years ago
dear ranchers
i have to print data to multiple columns using a logic iterate
for eg: the below code would print the same data on each column...
i'd like to see the values for the arraylist like a matrix..
1 2 3
4 5 6
7 8 9
rather than
1 1 1
2 2 2
3 3 3
4 4 4
can anyone suggest how can i achieve this ?
<logic:iterate id="myCollectionElement" collection="<%=drugsList %>" >
<tr>
<td bgcolor="#E9E9E9">
<html:radio property="selectedDrug" value="" /><bean:write name="myCollectionElement" />
</td>
<td bgcolor="#E0E0E0">
<html:radio property="selectedDrug" value="" /><bean:write name="myCollectionElement" />
</td>
<td bgcolor="#E9E9E9">
<html:radio property="selectedDrug" value="" /><bean:write name="myCollectionElement" />
</td>
</tr>
</logic:iterate>