Does spring have mechanisms to allow a command object that is an collection of a JavaBean containing data?
My form has four elements for text input. I want to show multiple rows of these Each row containing the same sets of data only with different values. The number of rows is choosen by the user by a "add row" button.
The problem I see is that the name must contain the row number(name="input4row1") or otherwise I will not get multiple values for the inputs.Code:<input type="text" name="input1"> <input type="text" name="input2"> <input type="text" name="input3"> <input type="text" name="input4">
Could I construct the command object as an ArrayList where each rows is stored in a JavaBean and put in the list. But I am not sure how to handle this in JSP.


Reply With Quote
