> From: Fernando Esteban Barril Otero 
 
> 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>

Thanks but the value attribute is used to specify literal String
values.  In the above example value="strProp" specifies the
String value "strProp" not a bean named strProp.  
All the examples I could find using logic:equal in the example app compare a
bean
property to a literal String value.

Does anyone know if its possible to do a comparision involving two 
beans ?

> ----- 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]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to