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!
- Re: [PATCH] Array access from non-Integer, numeric ... Geir Magnusson Jr.
- RE: [PATCH] Array access from non-Integer, num... Jose Alberto Fernandez
- Re: [PATCH] Array access from non-Integer, num... Geir Magnusson Jr.
- Re: [PATCH] Array access from non-Integer, num... Jon Stevens
- RE: [PATCH] Array access from non-Integer, num... Jose Alberto Fernandez
- Re: [PATCH] Array access from non-Integer, num... Geir Magnusson Jr.
- Re: [PATCH] Array access from non-Integer, num... Geir Magnusson Jr.
- Re: [PATCH] Array access from non-Integer, num... Geir Magnusson Jr.
- Re: [PATCH] Array access from non-Integer, num... Geir Magnusson Jr.
