Jose Alberto Fernandez wrote:
> 
> I agree with Geir.

Time to play the lottery ;)

> 
> Couldn't the original problem be resolved by doing:
> 
>         #set ($names = [ 'first', 'second', 'third' ])
>         <PRE>$names.get($peer.Role.intValue())</PRE>
> 
> Or something like that? Or is this not possible in velocity?
> 

Of course its possible.  And I am kicking myself for not suggesting it.
:)

geir

-- 
Geir Magnusson Jr.                           [EMAIL PROTECTED]
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!

Reply via email to