You could do something like (might be ugly but it would work)

#if($myObject.getSomethingThatMightBeNull() == null)
        ##output your empty string here
#else
        $myObject.getSomethingThatMightBeNull()
#end

2008/1/3, csanders <[EMAIL PROTECTED]>:
>
> Currently when something evaluates to null it just shows the literal
> text, like $myObject.getSomethingThatMightBeNull() .
>
> Is there to tell velocity to spit out an empty string instead of leaving
> it in the HTML ?
>
> Thanks,
> Charlie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to