On 03.08.2012 02:40, Angelo C. wrote: > I'm trying to iterate a map in template with following code, but, it turns > out that the entire map is only one row, I'm sure I have made something > wrong, can anybody point it out? Thanks,
Try this (untested): ----- <t:loop source="entries" value="entry"> <p>${entry.key}: ${entry.value}</p> </t:loop> @Property private Map.Entry<Integer, String> entry; public Set<Map.Entry<Integer, String>> getEntries() { return cnts.entrySet; } ----- HTH Stephan
signature.asc
Description: OpenPGP digital signature