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
I'd grab the struts source and use your debugger. Put a breakpoint where you get your NPE. You should then be in a pretty good position to figure what you've done wrong with your code. The Struts source is generally easy to understand and pretty well commented. HTH, Paul > -Original Message