I am not sure if what Jason describes will work (I've never tried it exactly that way). Here's how I do it: Use the same name for all the parameters that belong to the same column in your table. In your action have a method:
public void setFoo(int[] fooValue) { // Perhaps save array in variable? } All the parameters with the name foo will be put in an array (and converted to an int in this case. You can use String instead if you prefer) and this method will be called with that array. So if you have several columns you would create one such method for each column (since you will use different names for each column): public void setColumn2(String[] column2Value) { // Perhaps save array in variable? } public void setColumn3(String[] column3Value) { // Perhaps save array in variable? } Your iteration could look something like: <ww:iterator value="someList"> <input type="text" name="foo" value="<ww:property value="someValue"/>"/> <input type="text" name="column2" value="<ww:property value="someValue2"/>"/> <input type="text" name="column3" value="<ww:property value="someValue3"/>"/> </ww:iterator> Cheers, Dick Zetterberg [EMAIL PROTECTED] ----- Original Message ----- From: "Jason Carreira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 4:17 AM Subject: RE: [OS-webwork] Storing dynamic inputs in Action file Well, someone correct me if I'm wrong, but if you name all of the fields the same thing for each iteration, won't you get a String[] of values, with one per row? for the indexed properties, if you have an indexed property named foo, you'd have methods like this: public void setFoo(int index, Object foo) public Object getFoo(int index) then, in WW1.x you can (I think) name your properties like this: <input type="textfield" name="foo(1)" value="123"/> in WW2, I think the name would be "foo[1]" All of this is "I think" material, so play with it :-) Jason -----Original Message----- From: Seshagiri Varanasi [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 3:04 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] Storing dynamic inputs in Action file Hello Jason, I am using ww1.2 ParameterAware requires that we know the name, value for each parameter. But in my case, I am displaying the parameters in a iterator loop. So the parameter name for every iteration will be the same. Also the number of elements in the iterator may vary. could u please explain the indexed properties a bit more... Thanks, Seshagiri. ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork