Hi all,
I define a multiple select tag in my jsp like this :
html:select property='selectedCodes' size=4 multiple=true
html:options name='fundOptionCodes'
labelName='fundOptionLabels' /
/html:select
name and label are objects in the session.
I would like to capture selected datas
Make selectedCodes be either a String[] or Collection in your
ActionForm. Make sure your accessors/setters reflect that. That will
allow the ActionForm value to be automatically populated from the
request parameters, and will fill in all the selected items when the
view is rebuilt.
2 matches
Mail list logo