velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr. <ge...@optonline.net>
Subject Re: "$value" when null
Date Tue, 07 Oct 2003 10:52:54 GMT

On Monday, October 6, 2003, at 08:26 PM, ilfrin wrote:

> Hi ,
>
>   I wonder why it is so,
>
>   in my template the $!profile.FromAddr renders to $value, and all
>   other fields of the object hidden under "profile" that are null, I
>   thought that the $! will be quiet, that is return a "" in case of a
>   null, but it is very loud and returns the bloody $value all the time


I don't quite understand.  I assume that you have something under 
'profile' in the context?  it has a method getFromAddr() or get(String) 
that returns null.

And you see '$value' in the output?

>
>   explanations?
>
> -- 
> Thanks,
>  ilfrin                          mailto:ilfrin@poczta.onet.pl
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geirm@optonline.net


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


Mime
View raw message