are you sure you want to do a .equals() comparison? are you sure that $userprops.get() will recognize the values in $numbers? there are many places your VTL could fail. try to narrow down the problem by simplifying it in various ways.
On 2/8/06, Anagha <[EMAIL PROTECTED]> wrote: > Hi, > I'm trying to use ItertorTool() > When the specific condition is met (item =1), then I want to fetch from the > property object( userprops) based on the key which is next > to the curent iterator element. > i.e. $item = 1 I want to fetch properties.get(2). > Bur the following VTL is not working as desired. > > #set ($numbers = $mill.wrap($titles)) > #foreach ($item in $numbers) > > #if($item.equals("1")) > #set ($sometext = $userprops.get($numbers.next())) ## > $sometext > #end > > $numbers.more() > #end > > Any pointers? > -- > Thanks & Regards, > Anagha > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]