I have vector of vectors that I am using $data.elementAt(3) within a for loop in a
template to get the values out. At the same time I need to accumulate totals for these
values.
After putting context.put( "int", new Integer(1) ); in the servlet, I have attempted
to use:
#set($total = int.valueOf($total) +$int.valueOf($data.elementAt(3)))
The $total variable doesn't get populated and is presented as $total.
Is it possible to accumulate totals this way and maybe my syntax is incorrect? Is
there a better way of accumulating values within a template?
Thanks,
_________________________________________________
Kris Benedetto
GE Capital TIP/Modular Space
426 W. Lancaster Avenue Phone: 610-648-6795
Devon PA19333 Fax: 610-648-6720
Email: [EMAIL PROTECTED]