• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Data display in table usinf logic:iterate tag

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have stored some data in vectors in my action class and then set it is session.I am using it in jsp page to display the data in html table.The vector contains 12 elements.

Just want to display all the data present in vector in three columns only using logic:iterate tag.

i am using

<tr>
<logic:iterate id="col" name="records">
<td>
<bean:write name="col"/>
</td>
</logic:iterate>
</tr>

But it is showing all the data in one row.

Thanks in advance.
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Consider the difference between the following two code fragments. One does the entire loop in one row. The other does each iteration of the loop in a new row.





I don't follow the part about 3 columns. Do you mean you want to have a 3x4 grid? If so, you will need to add some more logic and not just the iterate tag.
 
Beware the other head of science - it bites! Nibble on this message:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic