Your question wasn't very precise, but I think I've been working on the
kind of thing you're talking about. In particular I couldn't get the
"value" parameters to input tags to work without using what looks like an
awful kludge. See the code below.
Suggestions on a better way to do this?
-- Rohan.
<b>Update or delete choices:</b>
<p>
<html:form action="/admin/updateChoices.do">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<th align="left">Delete?</th>
<th> </th>
<th align="left">Sequence</th>
<th> </th>
<th align="left">Choice</th>
</tr>
<logic:iterate id="choice" name="myQuestion" property="choices">
<html:hidden name="choice" property="choiceId"/>
<tr>
<td>
<html:multibox property="deleteIds">
<bean:write name="choice" property="choiceId"/>
</html:multibox>
</td>
<td> </td>
<td>
<input type="text"
name="sequence<bean:write name="choice" property="choiceId"/>"
value="<bean:write name="choice" property="sequence"/>">
</td>
<td> </td>
<td>
<input type="text" name="choice<bean:write name="choice"
property="choiceId"/>"
value="<bean:write name="choice" property="choice"/>">
</td>
</tr>
</logic:iterate>
</table>
On Thu, 2 Aug 2001, Sri Thuraisamy wrote:
> Has anyone tried using iterate tags to repeat set of Html UI components.
> Say, If I want to repeat text, chioce based on the values from database
> (Order and Items) The example what I see is just the output from the bean's
> values
>
> Sri Thuraisamy
>