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 Android Security Essentials Live Lessons this week in the Android 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
wood burning stoves
subject: Help required for forEach tag
Similar Threads
Dan exam doubt 17
Need help for refactoring this code
how to implement a table
best option for implementing form
I cannot use readLine for what I need to do