Using a Map won’t work, primarily because the Ognl language doesn’t support the syntax you are looking for. If we can ever get a hold of Drew Davidson (Ognl owner) we might be able to get support for this some day J
In the meantime, I’d recommend you use a List of Row objects where Row has two fields: key and value.
Then in YourAction-conversion.properties you’d have:
Collection_someList = com.acme.Row
And your HTML elements would have names like “someList[0].key” and “someList[0].value”.
Patrick
-----Original Message-----
I saw this entry on the
wiki.
|
- [OS-webwork] Populating HashMaps (Maps) from a post Matthew Payne
- Patrick Lightbody