tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Kennedy" <j...@gigaheads.com>
Subject Re: missing if/else syntax
Date Thu, 08 May 2003 19:41:26 GMT
Just did this recently,  here's how:

<c:choose>

<c_rt:when test="<%=
Const.LISTACTIVE.equals(request.getParameter(Const.ACTION))%>" >

    <fmt:message key="contract_list.results.title.active"/>

</c_rt:when>

<c:otherwise>

    <fmt:message key="contract_list.results.title.term"/>

</c:otherwise>

</c:choose>

Don't get to caught up with what I'm trying to do here.  This is effectively
an if/else structure.  Just sub your own code.
good luck

Jim Kennedy
IT Consultant
Mobile Phone: 813-503-1484
-----------------------------------------------------


----- Original Message -----
From: "otisg" <otisg@ureach.com>
To: <taglibs-user@jakarta.apache.org>
Sent: Thursday, May 08, 2003 3:23 PM
Subject: missing if/else syntax


> Hello,
>
> Is it just me, or do others also miss the ability to do
> <c:if ...>
> </c:if>
> <c:else>
> </c:else>
>
> I keep trying to do:
> <c:if ...?
> </c:if>
> <c:otherwise>
> </c:otherwise>
>
> But even that is wrong, as it seems that c:otherwise can be used
> only with c:choose and c:when :(
>
> Thanks,
> Otis
> P.S.
> I am using release 1.0.3 and when one uses
> <c:if>...</c:if><c:otherwise>....</c:otherwise> the error
> message incorrectly reports that <when> is being used.  It is
> really the <choose> tag that is being used, not <when>!
>
>
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
> ---------------------------------------------------------------------
> 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