Hi,
I want to compare 2 Strings on a JSP page, using JSTL tags,
so I need some tag code that does something like this:
if(myString1.equals(myString2) ) {
}
But without using script code - Something like that:
<c:if test="${ myString1 equals myString2 }">
Any idea how this can be done?
Thanks,
Christine
Lew - 10 Sep 2007 13:45 GMT
> Hi,
>
[quoted text clipped - 5 lines]
>
> But without using script code - Something like that:
"Script code"? You mean not to use Javascript? Just use EL (Expression
Language).
> <c:if test="${ myString1 equals myString2 }">
>
> Any idea how this can be done?
<c:if test="${ myString1 == myString2 }" >

Signature
Lew
Tim Slattery - 10 Sep 2007 14:22 GMT
>Hi,
>
[quoted text clipped - 9 lines]
>
>Any idea how this can be done?
I think that
<c:if test="${myString1 == myString2}">
works, doesn't it?

Signature
Tim Slattery
Slattery_T@bls.gov
http://members.cox.net/slatteryt
Lew - 10 Sep 2007 14:36 GMT
>> Hi,
>>
[quoted text clipped - 15 lines]
>
> works, doesn't it?
<http://java.sun.com/javaee/5/docs/tutorial/doc/JSPIntro7.html#wp102263>

Signature
Lew