I meant "iterator" tag ;) musachy
On Thu, Apr 3, 2008 at 4:52 PM, Musachy Barroso <[EMAIL PROTECTED]> wrote: > Use the "id" attribute in the for tag, like id="currInt". > > musachy > > > > On Thu, Apr 3, 2008 at 4:38 PM, Eric Nelson <[EMAIL PROTECTED]> wrote: > > Hi. This question may be very simple to answer, but it's driving me > > crazy. If I have code similar to: > > > > > > > > <s:iterator value="intList"> > > > > </s:iterator> > > > > > > > > Where intList is of type List<Integer>, how do I reference to current > > Integer on the value stack without using <s:property />? So I want to > > reference the current Integer with OGNL or EL expression language like: > > > > > > > > <select> > > > > <s:iterator value="intList"> > > > > <option value="${currInt}" <s:if test="${currInt == > > 1}">selected</s:if>>${currInt}</option> > > > > </s:iterator> > > > > </select> > > > > > > > > Here, currInt is the reference to the current Integer on the value > > stack. I hope this makes sense. Any help would be greatly appreciated. > > > > > > > > Thanks, > > > > > > > > Eric Nelson > > > > Software Engineer Program Manager > > > > > > > > > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]