aspose file tools*
The moose likes Struts and the fly likes problem with logic:iterator in dividing the rows to two coloums Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with logic:iterator in dividing the rows to two coloums" Watch "problem with logic:iterator in dividing the rows to two coloums" New topic
Author

problem with logic:iterator in dividing the rows to two coloums

Jayasri Alaparthi
Ranch Hand

Joined: Aug 14, 2006
Posts: 67
Hi friends,
Help me in formatting the code so that it displays two coloums in a table
posted Today 7:59 AM
--------------------------------------------------------------------------------
[Hi friends,
I have the below code, please some one help me in formatting the below code so as to display two coloums in a table.
<table cellpadding="0" cellspacing="0" border="0" id="AutoNumber15">
<tbody><tr id="parentTable">
<% int prodCnt = 0; %>
<td style="vertical-align: top">
<logic:iterate id="prodTree" name="productSelectionForm" property="treeSet" type="java.util.Map.Entry" indexId="idx">
<bean efine id="product" name="prodTree" property="value" type="java.util.Properties"/>
<% if (prodCnt == 0 || prodCnt == 10) { %>
<td style="vertical-align: top">
<table cellpadding="6" cellspacing="0" width="350" id="AutoNumber15">
<tbody>
<%} %>
<logic:equal name="product" property="level" value="1">
<% prodCnt++; %>
<tr style="background-color: #D8D8D8" id="<%=prodTree.getKey()%>">
<td style='<%= "padding-left:" + product.getProperty("indent") + ";width:1;background-color: #D8D8D8"%>'>
<html:multibox style="background-color: #D8D8D8" name="productSelectionForm" property="selectedProducts" ">
<bean:write name="prodTree" property="key"/>
</html:multibox>
</TD>
<td nowrap style='color:blue;font-weight:bold;width:200;background-color:#D8D8D8;text-align:left'>
<bean:write name="product" property="name" />
</td>
<td NOWRAP style="background-color: #D8D8D8;width:200"/>
<td style='color:blue;cursor:hand;text-decoration:underline;width:200
>Learn more</td>

</tr>
<tr>
<td colspan="4" bgcolor="#FFFF99";id="<%=prodTree.getKey()%>"
style="display: none" id="toggleMe" text-align:left>
<bean:write name="product" property="learn_more" />
</td></tr>

<tr>
<td colspan='3'><a href="javascript roductToggle(this)" style="text-decoration:underline">See All Subproducts</a></td>
</tr>
</logic:equal>

</logic:iterate>

<% if (prodCnt == 10 || prodCnt == 18) { %>

</tbody>
</table></td>
<% } %>
</td></tr>
</tbody>
</table>
with regards,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with logic:iterator in dividing the rows to two coloums