Are you still sticking things in the request manually or did you switch to the form? Only info you post in the form submission will come back to you when validation returns.
I don't know if your existing data is editable in text boxes (in which case it would post and come back) or if you are displaying it with bean:write (or c:out...), in which case you would need to have hiddens for every piece of info you display. As for the personListLength (that is what you meant by the ArrayList size, right?), did you put it in a hidden as I suggested or manually stick it in the request from the prep? It will need to post like all the other info you want to still have upon return from validation. An alternate, of course, is to put the form in session scope, then everything will still be available when you return. -j -----Original Message----- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 12:59 PM To: [EMAIL PROTECTED] Subject: RE: what setters do i implementinan indexedtag--NewBiequestion John I am having a problem when the form Validation fails. The ArrayList is size is resetting to ZERO. The action errors are coming but the table with the data is not coming. Thanks >>> [EMAIL PROTECTED] 06/12/03 02:52PM >>> 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] --------------------------------------------------------------------- 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]