You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Craig R. McClanahan" <Cr...@eng.sun.com> on 2001/02/01 01:00:31 UTC
Re: Testing equality of bean properties
Peter Alfors wrote:
> You could retrieve the bean2:prop2 value into a JSP scriptlet and then pass
> it to the logic:equal tag.
>
> <% theValue = yourBean.property2() %>
> <logic:equal name="bean1" property="prop1" value="<%=theValue%>">
>
Or, in a similar vein:
<bean:define id="theValue" name="yourBean" property="property2"/>
<logic:equal name="bean1" property="prop1" value="<%= theValue %>"/>
Craig