getting select tag data from ActionForm

2002-11-21 Thread meissa . Sakho
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

RE: getting select tag data from ActionForm

2002-11-21 Thread Karr, David
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.