Sorry man. I was considering them as method calls alone. But as per the fact you need to update the values to your action form and then
you should call your ajax method.
For this,
1. create a flag variable like isNewUserAdded (with default values as "NO") in your form, when ever you are doing ADD MORE, while hitting the action set the variable as "YES". Then return back the response to jsp
2. Create a hidden variable in your jsp which maps to this value i.e <input type="hidden" id="isNewUserAddedFlag" value="${form.isNewUserAdded }" />
3. In the javascript on load of the jsp, if isNewUserAddedFlag is "YES" call the ajax method.
if (document.getElementById("isNewUserAddedFlag").value == "YES") {
addMore();
}
------------------------------------------
If the above solution doesn't work out, try this,
1. Create three
string array variables for Name, Email and Phone.
2. On Click of ADD MORE dont use any ajax just dynamically add input text boxes alone with the same property as the first one.
3. Provide the values and submit the form. The string arrays will get populated with values seqeuntially in all the three arrays.
Note: I am not sure about this solution, try this out.