Re: pulling dynamic data out of a form...

2004-07-31 Thread Andrew Close
Ron thanks for that link. it looks helpful. i'll give that a try when i get to work on Mon. andy On Fri, 30 Jul 2004 22:43:43 -0700 (PDT), Ron Grabowski <[EMAIL PROTECTED]> wrote: > I found this post helpful: > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg96800.html

Re: pulling dynamic data out of a form...

2004-07-30 Thread Ron Grabowski
I found this post helpful: http://www.mail-archive.com/[EMAIL PROTECTED]/msg96800.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: pulling dynamic data out of a form...

2004-07-30 Thread Hubert Rabago
A couple of brain cells died on me earlier today, so for some reason I couldn't get the solution I already had working before. Here's a quick one that does work, but only if you know the max number of elements your list will have. In your ActionForm, declare your field as an array of String, and

Re: pulling dynamic data out of a form...

2004-07-30 Thread Andrew Close
Hubert, i had previously read the indexprops article in the faq. i think i have that part working. the second article was helpful, but i'm still a bit confused. when submitting my form. does my actionform need to have an array of beans in it for the textfields? or can i just use an array of st

Re: pulling dynamic data out of a form...

2004-07-30 Thread Hubert Rabago
The problem is that Struts tries to populate your form, it starts with an empty collection. Take a look at LazyList (search the mailing list archives), or pre-initialize your form and put it in session scope. For more info, read http://struts.apache.org/faqs/indexedprops.html and http://www.deve

RE: pulling dynamic data out of a form...

2004-07-30 Thread Paul McCulloch
-Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED] > Sent: Friday, July 30, 2004 5:21 PM > To: Struts > Subject: pulling dynamic data out of a form... > > > hi all, > > i'm having a hard time getting data from multiple textfields with > similar

pulling dynamic data out of a form...

2004-07-30 Thread Andrew Close
hi all, i'm having a hard time getting data from multiple textfields with similar names out of a form and into my actionform. in my JSP i'm using a [logic:iterate] tag to display (up to) ten textfields. these textfields are initially empty. the user enters data into the text fields and hits 'add