File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help required for forEach tag" Watch "Help required for forEach tag" New topic

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
I am using c:forEach tag
I have to display ArrayList vec in table formate

I am using code below
<table >
<c:forEach var="v" items="${vec}" >
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

Marimuthu Madasamy
Ranch Hand

Joined: Jun 07, 2007
Posts: 72

try this..

- Marimuthu Madasamy
I agree. Here's the link:
subject: Help required for forEach tag