E
Eduardo
Hi!
I'd like to get some help!
I have an ActionForm similar to the following:
public class Client extends ActionForm {
private String name;
private ArrayList phoneNumber;
public void setName(String name){
this.name = name;
}
public String getName(){
return name;
}
public void addPhoneNumber(Phone phone){
phoneNumber.add(phone);
}
...
}
This is the simple Phone bean...
--------------------------------
public class Phone {
private String phoneType; // Commercial/Particular/Mobile/etc.
private String countryCode;
private String localCode;
private String phoneNumber;
public void setPhoneType(String phoneType){
this.phoneType = phoneType;
}
....
}
The question is: How can I populate my actionForm from an HTML form?
How can I access the add method?
Thanks a lot,
Eduardo
I'd like to get some help!
I have an ActionForm similar to the following:
public class Client extends ActionForm {
private String name;
private ArrayList phoneNumber;
public void setName(String name){
this.name = name;
}
public String getName(){
return name;
}
public void addPhoneNumber(Phone phone){
phoneNumber.add(phone);
}
...
}
This is the simple Phone bean...
--------------------------------
public class Phone {
private String phoneType; // Commercial/Particular/Mobile/etc.
private String countryCode;
private String localCode;
private String phoneNumber;
public void setPhoneType(String phoneType){
this.phoneType = phoneType;
}
....
}
The question is: How can I populate my actionForm from an HTML form?
How can I access the add method?
Thanks a lot,
Eduardo