Try to use the <bean:define> to get the property of the second bean (b2) first and then use <logic:equal>.
<bean:define id="strProp" name="b2" property="p2"/> <logic:equal name="b1" property="p1" value="strProp"> Yes, the two are equal </logic:equal> Fernando ----- Original Message ----- From: "Afshartous, Nick" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, January 24, 2002 12:39 PM Subject: bean comparison using tags > > (sorry if this got posted twice). > > Hi, > > I'm trying to perform an equal test on two String values > accessed via two beans. So I'd like to do something like: > > <logic:equal name="b1" property="p1" > value="b2"/> > Yes, the two are equal > </logic:equal> > > but it seems that only literal String values may be specified by > the 'value' attribute. Does anyone have any suggestions on this ? > Thanks. > __ > > Nick > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

