Hi all,
we've got a form where there's a table. In each row there's a hidden field for the id, a comment (text field) and a select box. What's the best way to submit this form? Create a form bean that will accept arrays as input?
e.g.

public class CommentForm {
 private String[] orgIds;
 private String[] comments;
 private String[] types;

 ...getters/setters

 public String getRow(int num) {
   return orgIds[num] + "$" + comments[num] + "$" + types[num];
 }
}

Is the above class correct?
Does struts guarantee that the order in which the rows are declared is the same order in the array when the form bean is submitted?

Thanks
Dimitris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to