R
Rusty Wright
Is it possible to pass out to jsp an EnumMap and then "index" it with
the enum name? I'm currently using a parallel map of Map<String, Size>;
for example
<img src="whatever.jpg"
width="${photo.photoSizes['thumb1'].width}"
height="${photo.photoSizes['thumb1'].height}"
Where photoSizes is the <String,Size> map. In my java code I otherwise
use an enum instead of using the string thumb1, but the enum is used
with a parallel EnumMap, while this photoSizes is the <String,Size> map.
I would like to be able to always use an EnumMap.
the enum name? I'm currently using a parallel map of Map<String, Size>;
for example
<img src="whatever.jpg"
width="${photo.photoSizes['thumb1'].width}"
height="${photo.photoSizes['thumb1'].height}"
Where photoSizes is the <String,Size> map. In my java code I otherwise
use an enum instead of using the string thumb1, but the enum is used
with a parallel EnumMap, while this photoSizes is the <String,Size> map.
I would like to be able to always use an EnumMap.