tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject RE: missing if/else syntax
Date Thu, 08 May 2003 20:11:34 GMT

Nope:

 <c:either test="${ifTag.Existed}">
   <c:do>
     <c:either test="${another.Test}">
       <c:do>..</c:do>
       <c:or>..</c:or>
     </c:either>
   </c:do>
   <c:or>...</c:or>
 </c:either>

Which is just a <c:choose> switch statement anyway.

Hen

On Thu, 8 May 2003, Chen, Gin wrote:

> hehe that would be cool. but that assumes only one if/else.
> if we went with the if/else method an else could also have a test and
> thereby enable if/elseif/else statements :)
>
> -----Original Message-----
> From: Henri Yandell [mailto:bayard@generationjava.com]
> Sent: Thursday, May 08, 2003 4:07 PM
> To: Tag Libraries Users List
> Subject: RE: missing if/else syntax
>
>
>
> <c:either test="${ifTag.Existed}">
>   <c:do>...</c:do>
>   <c:or>...</c:or>
> </c:either>
>
>   :)
>
> On Thu, 8 May 2003, Chen, Gin wrote:
>
> > <c:if test="${ifTag.Existed}">Inline coding would be so much
> > cleaner<c:else>Here's to hoping</c:else></c:if>
> >
> > -----Original Message-----
> > From: Henri Yandell [mailto:bayard@generationjava.com]
> > Sent: Thursday, May 08, 2003 4:00 PM
> > To: Tag Libraries Users List; otisg@ureach.com
> > Subject: Re: missing if/else syntax
> >
> >
> >
> > Choose is better english than switch basically :)
> >
> > It also stops people arriving at the code and assuming it works the same
> > as a switch statement.
> >
> > On Thu, 8 May 2003, otisg wrote:
> >
> > > Plus, whoever chose c:choose instead of c:switch!?  Why?
> > > Ok, I'm done. :)
> > >
> > > Otis
> > >
> > >
> > > ________________________________________________
> > > Get your own "800" number
> > > Voicemail, fax, email, and a lot more
> > > http://www.ureach.com/reg/tag
> > >
> > >
> > > ---- On Thu, 8 May 2003, otisg (otisg@ureach.com) wrote:
> > >
> > > > 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
> >
>
>
> ---------------------------------------------------------------------
> 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