You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gaet <ga...@free.fr> on 2005/11/21 10:08:11 UTC
and its behaviour....
Hi,
I'm sure this question is easy to answer for much of yours but I cannot
figure out the following behaviour :
<bean:define id="myVar" value=""/>
<% myVar = "content"; %>
<logic:notEmpty name="myVar">
<% System.out.println("myVar is NOT EMPTY"); %>
</logic:notEmpty>
<logic:empty name="myVar">
<% System.out.println("myVar is EMPTY"); %>
</logic:empty>
The following snippet writes "myVar is EMPTY" on standard output, why?
What I have to write to have "myVar is NOT EMPTY"?
Thanks very much for your help
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: and its behaviour....
Posted by Gaet <ga...@free.fr>.
Thanks for reply Michael,
I mean that it's certainly trivial for experimented users with struts....not like me :o)
I try to look...but I can't find the solution....why this variables are different...
Cordialement,
----- Original Message -----
From: Michael Jouravlev
To: Struts Users Mailing List
Sent: Monday, November 21, 2005 5:54 PM
Subject: Re: <bean:define> and its behaviour....
If it is trivial, why won't you look it up yourself? The key is to
understand that myVar objects used here
<bean:define id="myVar" value=""/>
and here
<% myVar = "content"; %>
are different.
Michael.
On 11/21/05, Gaet <ga...@free.fr> wrote:
> Nobody knows the answer to this trivial question?
>
> Thanks
>
>
> ----- Original Message -----
> From: Gaet
> To: Mailing List Struts
> Sent: Monday, November 21, 2005 10:08 AM
> Subject: <bean:define> and its behaviour....
>
>
> Hi,
>
> I'm sure this question is easy to answer for much of yours but I cannot
> figure out the following behaviour :
>
> <bean:define id="myVar" value=""/>
> <% myVar = "content"; %>
>
> <logic:notEmpty name="myVar">
> <% System.out.println("myVar is NOT EMPTY"); %>
> </logic:notEmpty>
>
> <logic:empty name="myVar">
> <% System.out.println("myVar is EMPTY"); %>
> </logic:empty>
>
> The following snippet writes "myVar is EMPTY" on standard output, why?
> What I have to write to have "myVar is NOT EMPTY"?
>
> Thanks very much for your help
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: and its behaviour....
Posted by Michael Jouravlev <jm...@gmail.com>.
If it is trivial, why won't you look it up yourself? The key is to
understand that myVar objects used here
<bean:define id="myVar" value=""/>
and here
<% myVar = "content"; %>
are different.
Michael.
On 11/21/05, Gaet <ga...@free.fr> wrote:
> Nobody knows the answer to this trivial question?
>
> Thanks
>
>
> ----- Original Message -----
> From: Gaet
> To: Mailing List Struts
> Sent: Monday, November 21, 2005 10:08 AM
> Subject: <bean:define> and its behaviour....
>
>
> Hi,
>
> I'm sure this question is easy to answer for much of yours but I cannot
> figure out the following behaviour :
>
> <bean:define id="myVar" value=""/>
> <% myVar = "content"; %>
>
> <logic:notEmpty name="myVar">
> <% System.out.println("myVar is NOT EMPTY"); %>
> </logic:notEmpty>
>
> <logic:empty name="myVar">
> <% System.out.println("myVar is EMPTY"); %>
> </logic:empty>
>
> The following snippet writes "myVar is EMPTY" on standard output, why?
> What I have to write to have "myVar is NOT EMPTY"?
>
> Thanks very much for your help
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: and its behaviour....
Posted by Gaet <ga...@free.fr>.
Nobody knows the answer to this trivial question?
Thanks
----- Original Message -----
From: Gaet
To: Mailing List Struts
Sent: Monday, November 21, 2005 10:08 AM
Subject: <bean:define> and its behaviour....
Hi,
I'm sure this question is easy to answer for much of yours but I cannot
figure out the following behaviour :
<bean:define id="myVar" value=""/>
<% myVar = "content"; %>
<logic:notEmpty name="myVar">
<% System.out.println("myVar is NOT EMPTY"); %>
</logic:notEmpty>
<logic:empty name="myVar">
<% System.out.println("myVar is EMPTY"); %>
</logic:empty>
The following snippet writes "myVar is EMPTY" on standard output, why?
What I have to write to have "myVar is NOT EMPTY"?
Thanks very much for your help
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org