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: VTL syntax, again, again
Date Mon, 05 Mar 2001 23:20:15 GMT
"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?

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

Mime
View raw message