How do I pass struts2 <s:select multiple="true"> with a Map
Posted
by
deepblue
on Stack Overflow
See other posts from Stack Overflow
or by deepblue
Published on 2009-08-16T22:43:02Z
Indexed on
2012/09/27
3:38 UTC
Read the original article
Hit count: 209
I have an bean placed on my action Event.java, the action is Called ManageEvents. I would like the user to be able to add to a struts2 multiple select form field and create a list or map of items (in this case Map where the data would be .
<struts2:select name="event.dj_map" label="Add DJs To Your Event" list="event.dj_map" listsize="5" multiple="true" headerKey="headerKey" required="true" headerValue="--- Please Select ---">
So ultimately I would like to know how to pass a mult. select field (e.g. Events.dj_map) as a map of name,value pairs to an object (e.g. Event.java) set on the action (e.g. ManageEvents.java).
© Stack Overflow or respective owner