tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Gin" <Gin.C...@NielsenMedia.com>
Subject RE: Re: missing if/else syntax
Date Thu, 08 May 2003 19:53:36 GMT
Yea there's a few places in my stuff as well that would be much cleaner with
an if/else instead of use choose. Is there a reason that it was not part of
JSTL?
-Tim

-----Original Message-----
From: otisg [mailto:otisg@ureach.com]
Sent: Thursday, May 08, 2003 3:48 PM
To: Tag Libraries Users List
Subject: Re: Re: missing if/else syntax


Thanks.
Yes, I knew that.  What I was saying was that I am surprised
that there is no simple c:if/c:else without c:choose.

c:choose makes it really look like a switch, instead of a simple
if/else.

Otis




________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


---- On Thu, 8 May 2003, Jim Kennedy (jimk@gigaheads.com)
wrote:

> 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
> 
> 
> 


---------------------------------------------------------------------
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