File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
printing in table format using logic:iterate and bean:write
Sreemannarayana Golla
Greenhorn
Joined: May 29, 2004
Posts: 1
posted
May 29, 2004 07:13:00
0
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
posted
May 30, 2004 05:27:00
0
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
posted
May 30, 2004 09:28:00
0
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter