I have an ArrayList on a form... let's call the form Parent and the ArrayList Children.
If I have: private ArrayList children; public void setChildren(int index, ChildForm childForm) { this.children.set(index, childForm); } Then saving my form results in a NPE for BeanUtils.copyProperties. If I create a whole bunch of objects in the ArrayList in the constructor - I avoid this problem: public ParentForm () { children = new ArrayList(100); for (int i=0; i < 100; i++) { children.add(new ChildForm()); } But I'm guessing that this fits better into the reset(mapping, request) method of my form. My question is - how do I determine how many there are? Is there something in the request this this information - or should I set a hidden field with the number of children? Thanks, Matt -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>