Hello,
I have a jsp form with a field SSN1 and a corresponding input field for SSN. I would like to provide a button "Add" which adds one more set of fields to the form (SSN2 text field and it's corresponding input field). If they click on "Add" again, another set will be added(SSN3, it's value field) and so on.
After the user enters required no.of SSNs, the form needs to be submitted by clicking another button "Submit". The question is, here we don't know the form size or fields inadvance. Only after the user clicks on submit, we know how many fields (SSNs with values) are there in the form.
Is there a way that we can handle this sitution in Struts ?
I really appreciate your help.
Thanks,
Justin
I have a jsp form with a field SSN1 and a corresponding input field for SSN. I would like to provide a button "Add" which adds one more set of fields to the form (SSN2 text field and it's corresponding input field). If they click on "Add" again, another set will be added(SSN3, it's value field) and so on.
After the user enters required no.of SSNs, the form needs to be submitted by clicking another button "Submit". The question is, here we don't know the form size or fields inadvance. Only after the user clicks on submit, we know how many fields (SSNs with values) are there in the form.
Is there a way that we can handle this sitution in Struts ?
I really appreciate your help.
Thanks,
Justin