aspose file tools*
The moose likes Struts and the fly likes Help required for forEach tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help required for forEach tag" Watch "Help required for forEach tag" New topic
Author

Help required for forEach tag

Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
I have a ArrayList named vec. Data in ArrayList is shown below
vec[data1,data2,data3,data4,data5,data6,data7,data8,data9]
I am using c:forEach tag
I have to display ArrayList vec in table formate

I am using code below
<table >
<tr>
<c:forEach var="v" items="${vec}" >
<td>${v}</td>
</c:forEach>
</tr>
</table>
Above code display whole list in single row.

But my requirement is that Each row should contain 3 cells only
My table should be in format shown below

data1 data2 data3
data4 data5 data6
data7 data8 data9

Thanks
Marimuthu Madasamy
Ranch Hand

Joined: Jun 07, 2007
Posts: 72

try this..



- Marimuthu Madasamy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help required for forEach tag