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 22:54:39 GMT
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. :)

geir



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

Mime
View raw message