You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by VK...@aaamissouri.com on 2003/10/27 22:54:46 UTC

More than one condition using struts logic tags???

Hello,

I have a little query ->

How can I check for more that one condition using struts logic tags? like 

if (A & B & C) {
do something.........
}

how do I achieve the same using struts logic tags?

Re: More than one condition using struts logic tags???

Posted by "Craig R. McClanahan" <cr...@apache.org>.
VKeswani@aaamissouri.com wrote:

>Hello,
>
>I have a little query ->
>
>How can I check for more that one condition using struts logic tags? like 
>
>if (A & B & C) {
>do something.........
>}
>
>how do I achieve the same using struts logic tags?
>  
>
You can do an "and" test by nesting <logic:xxx> tags inside each other.  
There's no convenient way to do an "or" test however; that's where the 
expression language in JSTL and JSP 2.0 comes in very handy (if you're 
running on a recent enough servlet container to support them).

Craig



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org