You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Cathy Osekizoglu <hi...@yahoo.ca> on 2002/10/09 17:58:15 UTC
uae logic:notEqual to compare with several values
Hi, dear:
I want to use logic:notEqual to compare with several values. Can I use <logic:notEqual name="myForm" property="myProperty" value="3, 6"></logic:notEqual>?
If I use:
<logic:notEqual name=.. property=... value="3">
<logic:notEqual name=.. property=.. value="6">
doSomething
</logic:notEqual>
</logic:notEqual>
doSomething is never been excuted even the property is not equal to "3" or "6".
How can I do it in struts1.1? Please help me.
Thank you very much.
Cathy
---------------------------------
Post your free ad now! Yahoo! Canada Personals
Re: uae logic:notEqual to compare with several values
Posted by Cathy Osekizoglu <hi...@yahoo.ca>.
Craige:
Thank you for your reply. I am not familar with JSTL. I will learn it later.
Now, I need a quick fix on this problem. Could you or anybody help me?
Thank you.
"Craig R. McClanahan" <cr...@apache.org> wrote:
On Wed, 9 Oct 2002, Cathy Osekizoglu wrote:
> Date: Wed, 9 Oct 2002 11:58:15 -0400 (EDT)
> From: Cathy Osekizoglu
> Reply-To: Struts Users Mailing List
> To: Struts Users Mailing List ,
> Frederic Barozzi
> Subject: uae logic:notEqual to compare with several values
>
>
> Hi, dear:
> I want to use logic:notEqual to compare with several values. Can I use ?
> If I use:
>
>
> doSomething
>
>
> doSomething is never been excuted even the property is not equal to "3" or "6".
> How can I do it in struts1.1? Please help me.
> Thank you very much.
>
If you're running on a Servlet 2.3 / JSP 1.2 container, this is a place
where the expression language in JSTL 1.0 can be very helpful. In
addition, JSTL supports a tag that acts much like a "switch"
statement in Java, letting you specify alternative behavior for any number
of different values.
> Cathy
>
Craig
--
To unsubscribe, e-mail:
For additional commands, e-mail:
---------------------------------
Post your free ad now! Yahoo! Canada Personals
Re: uae logic:notEqual to compare with several values
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Wed, 9 Oct 2002, Cathy Osekizoglu wrote:
> Date: Wed, 9 Oct 2002 11:58:15 -0400 (EDT)
> From: Cathy Osekizoglu <hi...@yahoo.ca>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: Struts Users Mailing List <st...@jakarta.apache.org>,
> Frederic Barozzi <fr...@ifrance.com>
> Subject: uae logic:notEqual to compare with several values
>
>
> Hi, dear:
> I want to use logic:notEqual to compare with several values. Can I use <logic:notEqual name="myForm" property="myProperty" value="3, 6"></logic:notEqual>?
> If I use:
> <logic:notEqual name=.. property=... value="3">
> <logic:notEqual name=.. property=.. value="6">
> doSomething
> </logic:notEqual>
> </logic:notEqual>
> doSomething is never been excuted even the property is not equal to "3" or "6".
> How can I do it in struts1.1? Please help me.
> Thank you very much.
>
If you're running on a Servlet 2.3 / JSP 1.2 container, this is a place
where the expression language in JSTL 1.0 can be very helpful. In
addition, JSTL supports a <c:choose> tag that acts much like a "switch"
statement in Java, letting you specify alternative behavior for any number
of different values.
> Cathy
>
Craig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>