But when I try to access this form property in my jsp page, I get the error; java.lang.IllegalArgumentException: Invalid indexed property 'multiobjects' at org.apache.commons.beanutils.PropertyUtils.setIndexedProperty(PropertyUtils.java:1353)
Hello, I actually get this error when I get to the jsp page, I haven't even started accessing the multiobjects yet. I have to create dynamic select boxes, and store user-entered values for them in the multiobjects property. But setting the indexed property in my action class is giving me the error.
posted 15 years ago
Since you are setting the entire MultiObjects array at one time, you should not use setIndexedProperty. This method is only for setting a single element of the array. I'd recommend you set the property in this way: