You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Degner, Julie" <jd...@itc.nrcs.usda.gov> on 2002/07/16 00:12:27 UTC
How to compare 2 bean values with logic:equal
How do you compare 2 bean values using the logic:equal tag? In the example
below I would like the value to be the 'id' property of bean 's'.
<logic:iterate id="s" name="sList">
<bean:write scope="page" name="s" property="a"/>
<bean:write scope="page" name="s" property="b"/>
<logic:iterate id="o" name="oList">
<logic:equal name="o" property="x.id" value="s.id">
<bean:write scope="page" name="o" property="zz"/>
</logic:equal>
</logic:iterate>
</logic:iterate>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>