You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Bailey, Shane C." <SH...@saic.com> on 2003/06/12 20:28:15 UTC

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:RavipatiS@michigan.gov] 
Sent: Thursday, June 12, 2003 2:33 PM
To: struts-user@jakarta.apache.org
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

>>> David.Karr@wamu.net 06/12/03 02:25PM >>>
> -----Original Message-----
> From: Sashi Ravipati [mailto:RavipatiS@michigan.gov]
> 
> 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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org