I have a map with key-value pairs. I want to display the key on a drop-down and value to be sent to server for identifying what is selected.
I am using Struts2. I tried
Use listKey and listValue attributes of tag to get properties from list of objects.
listKey
listValue
In order to swap keys and values in map put value in listKey and key in listValue.