You cannot mix and match JSTL with Struts 2 tags. If you use a Struts 2 iterator tag with the <s:select>, it should work.
Matt On Thu, Mar 19, 2009 at 12:52 PM, tibi <t...@dds.nl> wrote: > > > > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net