Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
6465
Description
The error occours in struts 1.0.2 and others.
It is not possible to use a multiselect in an indexed property, because
the String[] result will be converted to a String in the populate Method
of BeanUtils.
I've fixed it locally with replacing
------------
if (parameterTypes[0].isArray()) {
------------
with
------------
if (parameterType.isArray()) {
------------
and it works find.
parameterType is either parameterTypes[0]
or parameterTypes[1]. It depends on non-indexed or
indexed properties.