Still don't agree about the messages vs errors ;o) Although I agree that tags belong in jsp's.
Thanks again Mark
On 13 Jan 2004, at 18:49, Richard Hightower wrote:
Change colors property to use a regular array.
-----Original Message----- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 11:06 AM To: Richard Hightower Cc: Struts Users Mailing List Subject: Re: Bothersome BeanUtils.populate exception
Hi Richard
Here are the summarized bits
public ArrayList getColours() { return colourList; }
public void setColours(ArrayList colourList) { this.colourList = colourList; }
//
ProductForm theForm = (ProductForm) form;
theForm.setColours(colourList); ...
<html:select property="colours" multiple="true"> <html:options collection="colours" property="foo" /> </html:select>
Everything works (the select menus select the correct values etc, but then when i submit i get the bean utils illegal argument exception.
This worked pretty much in the same way before. Hopefully I'm just missing something simple.
here are my mappings also.
Cheers mark
<action path="/admin/product/view" type="com.boxstuff.shop.admin.ViewProductAction" name="productEditForm" validate="false" scope="session" attribute="productEditForm"> <forward name="success" redirect="false" path="admin.product.view"/> </action> <action path="/admin/product/save" type="com.boxstuff.shop.admin.SaveProductAction" name="productEditForm" validate="false" scope="session" input="admin.product.view" attribute="productEditForm"> <forward name="success" path="admin.product.view" redirect="false"/> </action>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

