The docs for displaytag say that I can use a Map as a datasource instead of a List. However, I'm trying just that and not seeing keys and values in the map displayed.
The tag does know that I have 3 pairs in my Map, so 3 rows are output. How can I indicate in the <display:column> attributes that it should dispaly the keys in one column and the values in the other?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have solved my problem. I'm now passing the display tag the Set of Map.Entries in the map, so that I can access the "key" and "value" pairs as properties.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The docs for displaytag say that I can use a Map as a datasource instead of a List. However, I'm trying just that and not seeing keys and values in the map displayed.
The tag does know that I have 3 pairs in my Map, so 3 rows are output. How can I indicate in the <display:column> attributes that it should dispaly the keys in one column and the values in the other?
Thanks!
I have solved my problem. I'm now passing the display tag the Set of Map.Entries in the map, so that I can access the "key" and "value" pairs as properties.