• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

printing in table format using logic:iterate and bean:write

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how to print table format using logic:iterate and bean:write
like...

abc abc abc abc
abc abc abc abc
abc abc abc abc
abc abc abc abc
abc abc abc abc

in jsp page...
 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

U can use nested iterate using one iterate for the rows inside that everytime use another iterate for the columns in that
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the following code snipet will explain everything....


<logic:iterate name="someForm"
property='<%="field(m_IncomeDetail).rows"%>' id="row"
indexId="index">
<%if (flag) {%>
<tr align="center" bgcolor="#DDEBDE">
<%} else {%>
</tr>
<tr align="center">
<%}
<td class="fieldLabel" width="36%"><bean:message key="abc" /> </td>
<td class="fieldData" width="9%" align="center">
<bean:message key="abc" />
</td>
<td class="fielldData" width="15%" align="center">
<bean:message key="abc" />
</td>
</tr>
</logic:iterate>
 
I need a new interior decorator. This tiny ad just painted every room in my house purple.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic