Dear Li, Thank you for your help. You are right : I should have avoided using arrays. I decided to turn all of them to List, it is easier to add elements on them.
I tried using your AutoList class, then I have less problems, but some exceptions remain. I will work on them tomorow, as I will go to cinema this evening :) Those exceptions are due to lacking setters and getters. I will let you know soon. Thanks a lot again ! :) Dom --- En date de : Sam 27.11.10, Li Ying <liying.cn.2...@gmail.com> a écrit : > De: Li Ying <liying.cn.2...@gmail.com> > Objet: Re: javax.servlet.ServletException: BeanUtils.populate > À: "Struts Users Mailing List" <user@struts.apache.org> > Date: Samedi 27 novembre 2010, 16h12 > What happens when > > (1)liste is null > > or > > (2)liste is filled by null element > > or > > (3)index accessed is out of bound? > > > > 2010/11/27 Peter Nguyen <pe...@peternguyen.id.au>: > > Li, > > > > I think the issue is here is most likely point 3. When > the form is submitted, I suspect struts is trying to call > getListe(int) to retrieve a Personne bean before calling the > respective setters. > > > > So in this case, Dominque probably just needs an > additional getter in the action form that will return the > required bean: > > > > public Personne getListe(int i) { > > return (Personne) liste[i]; > > } > > > > Peter. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org