On Tue, 5 Apr 2005 09:51:07 -0400, Jeff Beal <[EMAIL PROTECTED]> wrote:
If all of your controls have the same name, a String[] form property works, also. (This isn't guaranteed to preserve any order, though.)
Yes, I thought this too.
Which would imply that if you have two controls in your form which are repeated, that although you can map them to two arrays, you can't make any
assumptions about array1[i] having any correspondence with array2[i].
I would expect that there could be much code which consists of (for example)
String[] names=form.getNames(); String[] values=form.getValues(); for (int i=0; i<names.length; i++) { do_something(names[i], values[i]); }
But if the two arrays are in different orders (or even that empty fields don't result in empty array elements, just shorter arrays), then this is very
wrong.
Yet I've seen no documentation warning about this. Which means that either there's a lot of mistaken people out there, or it's me.
Anybody got a clarification?
-- Tommy
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]