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

 

Reply via email to