struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Oldeboershuis, outermedia" <...@outermedia.de>
Subject RePost: Retreiving multiple values from SELECT boxes
Date Thu, 01 Feb 2001 18:28:43 GMT
Hi, 

I have read the post of Kevin in struts-user list and I have the same
problem. I did not see anybody else react and so I cross-post it to the
developer list. 

--------------cut-------------
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.

--------------paste--------------

We used the select box with multiple select and it worked fine with an
array property, but after I got a new nightly build (last week or so),
it did not work anymore. 

Did we do something wrong?? We defined the correct setters and it
already worked.
We experience the same problem which is described by Kevin. Only one
property is set instead of all "multiple select".

thanks in advance.

simon

Mime
View raw message