It's not the ArrayList that's the problem. The problem is getting blank PersonBeans into the ArrayList such that when the form is populated they are ready and waiting and you don't get the 'index out of bounds' bomb.
-----Original Message----- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:28 AM To: 'Struts Users Mailing List' Subject: RE: what setters do i implement inan indexedtag--NewBiequestion personList is an ArrayList. I thought they increased automagically. Maybe only my special Java code makes ArrayList increase for me without having to increase the size. :) -----Original Message----- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 2:33 PM To: [EMAIL PROTECTED] Subject: RE: what setters do i implement inan indexedtag--NewBiequestion Sorry for the post, I figured it out and got working. Only issues is to Increase the size of the personList when rows are added by user. Any ideas Thanks >>> [EMAIL PROTECTED] 06/12/03 02:25PM >>> > -----Original Message----- > From: Sashi Ravipati [mailto:[EMAIL PROTECTED] > > I had a question on how to do the prep action. > > [This assumes the prep action that entered the jsp figured out the size > of the list and set it into a hidden in the jsp in a field named > personListLength.] > > I tried like this but not sure if this is right > > In my action i added these lines > > ArrayList personList=new ArrayList(); > personList.add(new PersonBean()); > request.setAttribute("personList",personList); > return mapping.findForward("success"); > > I tried to retrieve it in the JSP page but did not get the value. I must > be doing something wrong. If it isn't working, then show us what you did, and show exactly what happened. It's hard for us to help if we don't know what you did. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]