I would like to have WW2 populate a list of objects from a form.

Say I have:

<form>
  <table>
    <tr>
      <input type="text" name="myProp1" />
      <input type="text" name="myProp2" />
      <input type="text" name="myProp3" />
    </tr>

    <tr>
      <input type="text" name="myProp1" />
      <input type="text" name="myProp2" />
      <input type="text" name="myProp3" />
    </tr>

    <tr>
      <input type="text" name="myProp1" />
      <input type="text" name="myProp2" />
      <input type="text" name="myProp3" />
    </tr>
  </table>
</form>



In my action class I have

public MyAction extends ActionSupport {
  private List itemsList = new ArrayList();
 
}


I also have a domain object class Item:
class Item {
  private String myProp1;
  private String myProp2;
  private String myProp3;

  ... getters and setters
}


Is there a way to have WebWork2 populate the 
itemsList List with instances of the Item 
class populated from the data in the table?

For each row in the table an instance of 
the Item object should be inserted into the
itemsList property of the action class.

Thanks,
Paul



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to