Hmm...
what is that syntax for indexed properties... try field names email(1).address
and email(1).type, etc...
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 3:24 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] Same property, 3 textfieldsHi everyone! :)
I've got a form like this:
E-mail: [ [EMAIL PROTECTED] ] Type: [Personal ][v]
E-mail: [ [EMAIL PROTECTED] ] Type: [Business ][v]
E-mail: [ ] Type: [Other ][v], an Email object:
public class Email {
private String address;
private int type;
// getters and setters
}, and a List of Email objects in my Action:
public class AddEmailsAction extends ActionSupport {
private List emails = new ArrayList();
// getters and setters
}How can I make WW2 add a new Email object for each row filled in the form? Is it even possible? :)
Peace,
-cv