Hi I have an ArrayList of checkbox values from a form. The ArrayList is
populated in the following way in a java servlet (where 'rw' is the
ArrayList):
if ( item.isFormField() && item.getFieldName().equalsIgnoreCase("rw")) {
rw.add(item.getString());
}
.
.
.
context.put("rw", rw);
I want to put these values into a velocity/xml template using the #foreach
loop.
eg.
#foreach( $item in $rw)
$item
#end
This isn't working however. Could someone tell me where I'm going wrong?
Any help would be appreciated.
--
View this message in context:
http://www.nabble.com/ArrayList-and--foreach-tf4149754.html#a11805367
Sent from the Velocity - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]