struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Ying <liying.cn.2...@gmail.com>
Subject Re: javax.servlet.ServletException: BeanUtils.populate
Date Sat, 27 Nov 2010 15:12:22 GMT
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 <peter@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message