You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "k.mcginley" <k....@8over8.com> on 2001/01/23 12:45:05 UTC

Retreiving multiple values from SELECT boxes

I need to know how to retreive multiple values from a HTML select box using
struts.

So far I have set-up the SELECT box to allow multiple selects. On submission
of the HTML form the values of the SELECT box are submitted in the request
as an array of strings. However the bean setter method does not seem to be
executed correctly as the required property is only set to the first element
in the string array. I have stepped through the code and it seems to go
wrong in the BeanUtils.populate() method were the incoming parameters are
not properly recorded and sent to the property setter method.

Has anybody come across similar problems ?

Any feedback would be appreciated

Regards
Kevin