那位熟悉 VTL ?

03-04-29 sim114

请问有选择的循环怎么实现?



#set( $startrow = 0)
#foreach ($field in $fieldlist())
#set( $startrow = $startrow + 1 )
#if( $startrow == 1 )
## Just it
#end

## More realizable...
#end

wys1978
2003-04-29 20:17

change $fieldlist() to $fieldlist , just remove the "()"

sim114
2003-04-30 09:49

this...

#foreach ($field in $entity.getFieldlist())

:)