My guess is the BeanUtils.populate error is because you wrote an indexed
setter method and overloaded the String[] or Collection setter method.
Don't do that.

----- Original Message -----
From: "Peng Tuck Kwok" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 10:20 PM
Subject: Help with optionsCollection error


> I've sucessfully managed to display a multiple options in <html:select>
> but when I click on submit I get errors.
>
> One condition is when I don't click on any of the options , this error
> would be failed to obtain specified collection when ever I try to access
> the bean attribute that contains the values. The bean attribute is a
> vector FYI.
>
> The second condition is when I click on one or more of the options and
> click submit I get a beanutils.populate error, type mismatch.
>
>
>   <html:select name="compose" multiple="true" property="recipients"
> size="8">
> <html:optionsCollection label="name" property="recipients"
> value="number"/>
>        </html:select>
>
> The form name is compose and recipients is a vector.
>
> Does anyone have a idea where I'm going wrong?
>
> TIA
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to