We use s:select to display a list of strings from a resource set.
In action:
In message resources, each bank will have a name:
bank.code.12= ALFM Bank bank.code.13= RIHN Bank ....
In JSP:
<s:select name = "selectedBankCode" list = "bankCodesList" listKey = "toString()" listValue = "%{getText('bank.code.' + toString())}" />
Since the list of banks is List<String> , we used toString() to get the key and used toString() to get the value from the resource bundle.
I found that s:select has the status attribute the same as s:iterator , but I could not find it!
So, you think there are better ways ?!
source share