You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vinh Tran <vi...@processintelligence.com> on 2002/11/29 19:08:59 UTC
Comparing Bean Properties
Anyone know how to do comparisons on 2 bean properties? Logic tags allow me
to compare 1 property to a constant but not another bean property. Any
ideas?
Vinh
RE: Comparing Bean Properties
Posted by Vinh Tran <vi...@processintelligence.com>.
I didn't want to use scriptlets but I guess it will have to do. Thanks.
Vinh
-----Original Message-----
From: Patrice [mailto:ppichere@nerim.net]
Sent: Friday, November 29, 2002 1:40 PM
To: Struts Users Mailing List; vinht@processintelligence.com
Subject: Re: Comparing Bean Properties
Hi Vinh,
You can use a scripting variable: if you want compare the property1 of bean1
with the property2 of bean2:
<bean:define id="foo" name="bean1" property="property1"/>
<logic:equal name="bean2" property="property2" value="<%= foo %>">
...
</logic:equal>
Hope it helps.
Patrice
----- Original Message -----
From: "Vinh Tran" <vi...@processintelligence.com>
To: <st...@jakarta.apache.org>
Sent: Friday, November 29, 2002 7:08 PM
Subject: Comparing Bean Properties
> Anyone know how to do comparisons on 2 bean properties? Logic tags allow
me
> to compare 1 property to a constant but not another bean property. Any
> ideas?
>
> Vinh
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Comparing Bean Properties
Posted by Patrice <pp...@nerim.net>.
Hi Vinh,
You can use a scripting variable: if you want compare the property1 of bean1
with the property2 of bean2:
<bean:define id="foo" name="bean1" property="property1"/>
<logic:equal name="bean2" property="property2" value="<%= foo %>">
...
</logic:equal>
Hope it helps.
Patrice
----- Original Message -----
From: "Vinh Tran" <vi...@processintelligence.com>
To: <st...@jakarta.apache.org>
Sent: Friday, November 29, 2002 7:08 PM
Subject: Comparing Bean Properties
> Anyone know how to do comparisons on 2 bean properties? Logic tags allow
me
> to compare 1 property to a constant but not another bean property. Any
> ideas?
>
> Vinh
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>