You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jitesh Sinha <js...@cisco.com> on 2003/11/02 13:18:27 UTC

Two basic questions regarding logic:equal

Hi there,


1.)How do you compare one property of a bean with two values by a single
logic:equal tag?I want to achieve the following logic:

if(str.equals("astr") || str.equals("anotherstr"))

I guess logic:equal tag is for only one comparison...so what you  people
think is the most efficient way to achieve this?

2.)How do you compare one property of a bean with a value ignoring the case
by a logic:equal tag?I want to achieve the following logic:

if(str.equalsIgnoreCase("astr"))


Thanks,
Jitesh