tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Kettering <tims...@mac.com>
Subject Re: <c:if> and boolean value
Date Thu, 06 Feb 2003 17:08:50 GMT
John,

Download the PDF at this URL and keep it around:

http://www.manning.com/bayern/appendixA.pdf

I've found it quite useful in terms of referencing JSTL tags, and for finding examples
of how such tags are written.  I certainly wish it had a bit more examples, but I suppose
thats why you buy the book, as Bayern would like.  :)

-tim 


On Thursday, February 06, 2003, at 11:51AM, John C Cartwright <John.C.Cartwright@noaa.gov>
wrote:

>That works great, thanks to both Tim and Pierre.  One follow up question 
>though - is there a <c:else> tag to go with the <c:if>?
>
>Thanks again!
>
>-- john
>
>Timothy Kettering wrote:
>
>>
>> Yeah, that occured to me after I sent off the email and was sitting on 
>> the couch watching Law & Order on TNT.  Somehow I just couldn't be 
>> bothered enough to go back to the computer and follow up on it.  :)  
>> Anyway, more ways to skin the proverbial cat...
>>
>> -tim
>>
>> On Wednesday, February 5, 2003, at 09:37 PM, Pierre Delisle wrote:
>>
>>> Try the following:
>>>
>>>    <c:if test="${mapservice.running}">
>>>
>>> [What Timothy suggested would also work, but there is no need
>>> to test against true, since you already have a boolean expression
>>> for your test.]
>>>
>>>     -- Pierre
>>>
>>>
>>> Timothy Kettering wrote:
>>>
>>>>
>>>> offhand, id say you should be doing this.  (enclose the entire
>>>> evaluation in the curly braces)
>>>>
>>>> <c:if test="${mapservice.running == true}">
>>>>
>>>> On Wednesday, February 5, 2003, at 08:23 PM, John C Cartwright wrote:
>>>>
>>>>> Hello All,
>>>>>
>>>>> I have a isRunning() method in my bean that returns a boolean.  I'm
>>>>> try to test against that value with something like the following:
>>>>>
>>>>> <c:if test="${mapservice.running} == true">
>>>>> <img src="../images/TransGear.gif" width="20" height="20">
>>>>> </c:if>
>>>>>
>>>>> The problem is that even though the bean's getter method is properly
>>>>> returning the true value (I can print it into the HTML page), the
>>>>> above conditional always fails.  Can someone point out what I'm doing
>>>>> wrong?
>>>>>
>>>>> JSTL v.1.2, core library.
>>>>>
>>>>> Thanks!
>>>>>
>>>>> -- john
>>>>>
>>>>> =====================================================
>>>>> John Cartwright
>>>>> Associate Scientist
>>>>> Geospatial Data Services Group
>>>>> CIRES, National Geophysical Data Center/NOAA
>>>>> (303) 497-6284
>>>>> John.C.Cartwright@noaa.gov
>>>>> =====================================================
>>>>>
>>
>
>
>-- 
>=====================================================
>John Cartwright
>Associate Scientist
>Geospatial Data Services Group
>CIRES, National Geophysical Data Center/NOAA
>(303) 497-6284
>John.C.Cartwright@noaa.gov
>=====================================================
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message