well, here, in my application, i'm displaying rows of textfields(the count of textfields is dynamic) in a jsp and i need to get the values from each of these fields.
straight to the point, for the number of textfields it generates possess the same name "quantity" in the interpreted HTML code. hence, i culdn't get value(what user enters) from a particular textfield.
infact, i tried out using "quantity<%= index%>" to distinguish each of textfields. but, since it is a dynamic thing, i culd not figure out as many getter and setter methods in its corresponding form.
how, to resolve this logic. any efforts towards here wuld b appreciated. thanks.
In the form bean, this will be a comma separated string and the action class can split it and use the values. This is simple and it works.