Hi, I'd like to use a bean property as the name of the property for a html:text element as such:
<logic:iterate id="product" type="app.bean.Product" name="producten">
<tr>
<td><bean:write name="product" property="productnaam"/></td>
<td><bean:write name="product" property="prijs"/></td>
<%
params.put ( "id", new Integer(product.getId()) );
%>
<td><html:text property="<%= id %>"/></td>
</logic:iterate>
However, this doesn't seem to work. I want it to generate <input type="text" name="1"/> with 1 being the product id.
I tried the above and also:
<td><html:text property='<bean:write name="product" property="id"/>' size="10" maxlength="1"/></td>
Neither works, what am I doing wrong?
Thanks