You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Graham <dg...@hotmail.com> on 2003/05/01 01:43:30 UTC
Re: Logic Tags - Logical OR
The Struts team advocates the use of standardized technologies over Struts
specific code whenever possible. I only use the Struts <html:*> and
<tiles:*> taglibs and JSTL for everything else. When JSF is finalized I'll
be moving to that instead of the Struts html taglib.
We have no current plans to remove the taglibs but many committers are
focused on other areas of Struts because of the increasing standardization
of components.
David
>From: Mike Duffy <md...@yahoo.com>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: Struts Users Mailing List <st...@jakarta.apache.org>
>Subject: Re: Logic Tags - Logical OR
>Date: Wed, 30 Apr 2003 14:55:10 -0700 (PDT)
>
>Thanks David.
>
>Do you think the Struts tags will soon be phased out in favor of
>JSTL?
>
>If we are building a site based on best practices do you think we
>should switch from Struts tags to JSTL?
>
>Mike
>
>--- David Graham <dg...@hotmail.com> wrote:
> > The JSTL expression language allows you to do this easily.
> >
> > David
> >
> >
> >
> > >From: Mike Duffy <md...@yahoo.com>
> > >Reply-To: "Struts Users Mailing List"
> > <st...@jakarta.apache.org>
> > >To: Struts Users Mailing List <st...@jakarta.apache.org>
> > >Subject: Logic Tags - Logical OR
> > >Date: Wed, 30 Apr 2003 14:43:44 -0700 (PDT)
> > >
> > >It is very easy to do a logical "AND" with Struts logic tags by
> > >nesting the tags.
> > >
> > >Is there an elegant way to do a logical "OR" with the Struts logic
> > >tags?
> > >
> > >Let's say I have a JSP that is going to display certain things
> > based
> > >on what role a user is in (role1, role2, etc).
> > >
> > >If I want to display something if a user is in role1 and in role2,
> > I
> > >simply nest the logic tags
> > >
> > >However, what is the elegant solution if I want to display
> > something
> > >if a user is in either role1 or role2?
> > >
> > >__________________________________
> > >Do you Yahoo!?
> > >The New Yahoo! Search - Faster. Easier. Bingo.
> > >http://search.yahoo.com
> > >
> >
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail:
> > struts-user-help@jakarta.apache.org
> > >
> >
> >
> > _________________________________________________________________
> > The new MSN 8: smart spam protection and 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> >
>---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > struts-user-help@jakarta.apache.org
> >
>
>
>__________________________________
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo.
>http://search.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org