velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <jvan...@periapt.com>
Subject Re: VTL syntax, again, again
Date Mon, 05 Mar 2001 22:33:06 GMT
"Geir Magnusson Jr." wrote:

> "Geir Magnusson Jr." wrote:
> >
> > David Esposito wrote:
> > >
> > > Ok, i think there is some sort of b** happening here, but I wanted to see if
> > > this rings a bell before I use the bad B word ... ;)
> > >
> > > #foreach($state in $state_list)
> > >         $state.Name blah blah blah $state.ID
> > >         #if($state.ID == $selected_state_id)selected#end
> > > #end
> > >
> > > it seems that if selected_state_id is not defined in the context, the whole
> > > processing of the page ends ... Velocity just up and decides to go home for
> > > the evening ... no warnings, no error messages ... ;) ...
> >
> > That would be a bug then. :)
>
> It's clear to me what's going on.  I will fix now...
>
> It will evaluate to false, and log it if either the LHS or RHS isn't in
> the context.
>
> Sound good y'all?

+1

>
>
> geir
> --
> Geir Magnusson Jr.                               geirm@optonline.com
> Developing for the web?  See http://jakarta.apache.org/velocity/

--
jvz.

Jason van Zyl
jvanzyl@periapt.com

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine




Mime
View raw message