you got two beans (b1, b2) and properties in each of them (b1.p1, b2.p2)
then this should work

<bean:define id="p" name="b2" property="p2" />

<logic:equal name="p1" property="p" value="<%= p %>">
...
</logic:equal>

Feky

----- Original Message -----
From: "Afshartous, Nick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 23, 2002 8:41 PM
Subject: Using a tag to compare two beans


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

Reply via email to