Matt, Does it have to be an ArrayList?
Could you get away with just an Array? I use String arrays in my Action forms for multiple selects and haven't had a problem with that. -----Original Message----- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:16 PM To: '[EMAIL PROTECTED]' Subject: select multiple="true" and setting properties I have an ActionForm with the following: ArrayList msoIds; public ArrayList getMsoIds() { return msoIds; } public void setMsoIds(ArrayList msoIds) { this.msoIds = msoIds; } Now I have a JSP that displays a <select> with the ability to select multiples: <html:select multiple="true" property="msoIds" styleId="msoIds" size="10"> <html:options collection="userMsoList" property="value" labelProperty="label"/> </html:select> However, as you probably know, I get an exception when Struts does BeanUtils.copyProperties - can't convert String to ArrayList. I tried adding indexed setters for the multiple select: public String getMsoIds(int index) { return (String) msoIds.get(index); } public void setMsoIds(int index, String msoId) { msoIds.set(index, msoId); } but this results in the following error: Caused by: java.lang.NoSuchMethodException: Property 'msoIds' has no setter method I saw stuff in the mailing list about naming the indexed properties different, and I tried this (also renaming the <select>), but then my page stops loading when it hits the new name (allowedMSOs). Using tiles hides all the errors :(. Any ideas are appreciated. Matt --------------------------------------------------------------------- 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]