File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 » 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>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: printing in table format using logic:iterate and bean:write
 
Similar Threads
problem using logic:iterate
looping with iterate tag in struts
logic:iterate problem
getting data from a dynamic table in one JSP to another JSP
logic:iterate problem