You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Duffy <md...@yahoo.com> on 2003/04/30 23:43:44 UTC

Logic Tags - Logical OR

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