Is there anyway I can convert a Map to a POJO that I can then use in JSP EL? Maybe with reflection or something? I don't want to have to manually create a new class for every new collection of properties.
views:
28answers:
1
+4
A:
There's no need to do so. EL can perfectly access maps.
${map.key}
Or if the key contains dots:
${map['key.with.dots']}
You can even access it using dynamic keys:
${map[key]}
BalusC
2010-10-15 01:18:39
Cool, didn't know that.
Kyle
2010-10-15 04:41:48