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


********************************************
Name: Daniel Blázquez
ITConsultant
Company: Donewtech Solutions, S.L.
Zuatzu Business Park, Urumea Building
E-20018 San Sebastian
Tel.: +34 943223031
Fax:  +34 943316385
Email:[EMAIL PROTECTED]
Internet: http://www.donewtech.com
********************************************


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

Reply via email to