It calls the getters too... one.two.three
on submit will call getOne().getTwo().setThree() sandeep --- Gemes Tibor <[EMAIL PROTECTED]> wrote: > James Watkins �rta: > > >My problem comes when I try to submit the form. I > get the following > >exception when the bean gets populated: > > > >java.lang.ArrayIndexOutOfBoundsException: Array > index out of range: 4 > > at java.util.Vector.get(Vector.java:699) > > > >The index is that of the first project with a > checked box. I don't get this > >problem if I put the bean in session scope, but I'd > rather not do that if I > >can avoid it. > > > > > The struts framework only calls the setters, but the > setters requires > the object to be present on which they are called. > If the subbeans arent created at construction time, > they will be null, > so NPE is thrown runtime. > > You have 2 alternatives: store in session or > construct all subbeans with > the form. > > Hth, > > Tib > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

