mraible wrote:
>
> Have you tried using OGNL syntax? I believe it's something like
> %{price.name}.
>
> Matt
>
i tried this:
<c:forEach var="price" items="${prices}">
<c:out value="${price.name}"/>
<s:select list="priceAmounts" id="%{price.id}"
name="%{price.name}"></s:select>
</c:forEach>
but then the id and name are empty... is there a OGNL expert in the house ;)
i have a work arround:
<c:forEach var="price" items="${prices}">
<c:out value="${price.name}"/>
<select name="${price.name}">
<c:forEach var="option" items="${priceAmounts}">
<option value="${option}">${option}
</c:forEach>
</select>
</c:forEach>
--
View this message in context:
http://www.nabble.com/struts-taglib-select-with-foreach-example-tp22600991s2369p22607056.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net