I have done rigth now a few more things but I still have the problem: - I have set the scope of the action to "session"
- I have implemented the reset() method, instantiating collectiong using a LazyList Maybe its recommendable to switch to Indexed properties? i only wanted to do in the same way as Arron's monkey tree -so simple, and cute-... but nothing works! :( Any ideas please? ----- Original Message ----- From: "Daniel Blázquez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 02, 2003 5:55 PM Subject: [struts-nested] BeanUtils.populate exception > Hi, > > I have been dealing with struts-nested taglibs for a few days (with the > unestimable help from Arron Bates in http://www.keyboardmonkey.com) and with > the great amount of messages of this topic in the mailing list. But I still > have the next problem: > > javax.servlet.ServletException: BeanUtils.populate > at org.apache.struts.util.RequestUtils.populate RequestUtils.java:1254) > > (no extra info about ArrayIndexOutOfBounds or a more detailed exception) > > when submitting a form that uses a nested collection of objects. Each object > is showing in the form a <select> and a <input text> box (as a form showing > monkeys, each monkey with a box for age and a <select> for size). > > <nested.form action="xxxx"> > > <nested:iterate property="monkeys"> > > <nested:write property="name"/> > <nested:text property="age" size="10"/> > <nested:select property="size"> > <nested:options property="../sizesList"/> > </nested:select> > > </nested:iterate> > > </nested.form> > > The form also has many more properties (including checkboxes and simple > selects) but these ones work correctly. > > Things I have already done: > > -- Initialize involved property according to thread > http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] > pache.org&by=thread&from=240019 > (thanks Arron again and Brandon) > > -- provide setter in the form for the nested property with the signature: > public void setMonkeys(Object[] newMonkeys) > > -- provide setter in nested monkey object for the size > public void setSize(String newSize) > > I am really frustated because 'cant see what I am doing wrong!, any help > will be very appreciated > > TIA, > Daniel > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

