You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Galbreath, Mark" <Ga...@tessco.com> on 2002/06/06 20:00:06 UTC
RE: Problem with Logic-iterate and enumeration (2)
Or perhaps something like....?
<%! int count = 0 %>
<logic:iterate * * *>
<tr>
<logic:iterate * * * length="3" offset="<%= count %>">
<td><bean:write * * * /></td>
</logic:iterate>
</tr>
<% count += 3 %>
</logic:iterate>
Mark
-----Original Message-----
From: struts (H2Opilot) [mailto:struts@h2opilot.de]
Sent: Thursday, June 06, 2002 10:40 AM
hi,
I have a List of Numbers and I like to use 3 columns and n rows.
Is there a possible way to realise this via Logic-iteration.
Normally, it look like that every next step in the iteration there is
always another row.
Like this:
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<logic:iterate id="element" name="bla_f" property="numberss"
type="app.Data">
<tr bordercolor="#333366">
<td>
<bean:write name="element" property="number"/>
</td>
<td>
****** this should be the next element of Data, but how increment the
element?? *****
<bean:write name="element" property="number"/>
</td>
</tr>
</logic:iterate>
</table>
any ideas?
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>