I've used code like this in my Action class execute/perform method:
String inputs[] = request.getParameterValues(s);
for (int x = 0; x < inputs.length; x++) {
String oneInput = inputs[x];
dosomething(oneInput);
}This seems to work quite well, assuming all the form <input> tags are named the same. I don't know struts well enough, yet, to know whether you can have an ActionForm property be a Collection type, or not. Would be interested in the answer, though. It wouldn't have mattered in my application, though, as I needed to generate an entire form dynamically, so it would have been a wash, either way.
-nash
On Monday, March 10, 2003, at 04:33 PM, miguel angel rojas aquino wrote:
hi, i'm creating a html form that dinamically adds new rows to a html table via javascript, so it goes to the server only when the user ends the data capture, like a jtable control in a swing app, so the problem now is, how can i map all this dynamic controls to the corresponding ActionForm? is there a way to do something like puting all those values in an array in the action form?
thanks in advance, greetings.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
*********************************************************************** This message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. ***********************************************************************
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

