have you seen this: http://www.manning.com/bayern/appendixA.pdf

the last example on this page has the answer you need:
http://www-106.ibm.com/developerworks/java/library/j-jstl0211.html

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.



> -----Original Message-----
> From: Curley, John [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2003 10:03 AM
> To: 'Struts Users Mailing List'
> Subject: comparing strings with tags/online reference
> 
> 
> 
> Hi, All:
> 
> How do you compare strings (if you can) with JSTL?  I am 
> having trouble
> finding a good online reference (if anyone knows of one, please let me
> know).
> 
> I have a string that I am getting from an object that is in a 
> collection in
> one of my forms.
> 
> I have used the c:choose and c:if core JSTL successfully but 
> only with a
> boolean value (here is an example):
> 
> <c:set var="whiteBackground" scope="page" value="${false}"/>
>   <nested:iterate id="tier" property="tierAccess">
>   <tr>
>     <c:choose>
>       <c:when test="${whiteBackground}">
>         <td bgcolor="#FFFFFF">
>       </c:when>
>       <c:otherwise>
>         <td>
>       </c:otherwise>
>     </c:choose>
> 
> ...
> 
> The only problem is that I used this test with one value of 
> boolean type.
> Now I know that I have to make the c:when (or c:if) test 
> attribute resolve
> to a boolean condition: how can I use this (or similar tag) 
> to do a string
> compare?
> 
> I guess a big issue for me is finding a good online reference 
> since I am new
> to JSTL.
> 
> Any help would be great.
> 
> Thanks,
> John
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to