struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jouravlev <jmi...@gmail.com>
Subject Re: <bean:define> and its behaviour....
Date Mon, 21 Nov 2005 16:54:55 GMT
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 <gaetmail@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


Mime
View raw message