Two Laptop Bag
The moose likes Struts and the fly likes printing in table format using logic:iterate and bean:write Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "printing in table format using logic:iterate and bean:write" Watch "printing in table format using logic:iterate and bean:write" New topic
Author

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

Sreemannarayana Golla
Greenhorn

Joined: May 29, 2004
Posts: 1
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...


sreeman
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi

U can use nested iterate using one iterate for the rows inside that everytime use another iterate for the columns in that
wonderprat shah
Greenhorn

Joined: May 30, 2004
Posts: 6
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>
 
 
subject: printing in table format using logic:iterate and bean:write
 
Threads others viewed
logic:iterate problem
logic:iterate problem
getting data from a dynamic table in one JSP to another JSP
problem using logic:iterate
looping with iterate tag in struts
MyEclipse, The Clear Choice