I have some design questions regarding to the web form. My form has a lot of fields like Customer Name 1, Customer Password 1, Confirm Customer Password 1. I call those as a group. I have around 20 groups of that on my web form because of the user requirement. I feel so annoying that if I have to use the following validation code for each group,
The above code is good for few groups, however, I have a lot of such groups and I need to validate one by one. I feel so boring if I just copy paste one set of code and pase it to the jsp and rename the variable names.