Security Management wrote:
<s:iterator value="exception.exceptionValues">
<li>
<s:property value="personProvider.department([0].top)"/>
</li>
<li>
<s:property value="[0].top"/>
</li>
</s:iterator>
>
The second <li> gives me the correct number, but the first does not. I want
the first to translate to:
I'm not sure why you need to use bare stack access to get a value from
an iterator, but try "personProvider.department(%{[0].top})" as a
starter. Personally I think if the value is being iterated over I'd use
something more like:
<s:iterator value="exception.exceptionValues" var="n">
<s:property value="personProvider.department(n)"/>
</s:iterator>
but I don't know what you're actually trying to iterate over.
I can't imagine it's not possible to call a function with an argument,
Guess you haven't used JSP EL; you're lucky.
Ognl.org is down.
Use the OpenSymphony OGNL site.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]