I have a situation where the page has a table sreucture of text-box 2D array. The page must allow dynamic addition/removal of rows.
This is typically a kind of 2D element-array, which is array of text-boxes.
In struts, how this situation can be handled to retrieve data from form - where the rows are dynamic.
how action-form can be built to capture the data from the 2D text-box array?
Joined: Feb 15, 2005
You can use indexed properties to create a dynamic table in Struts, but you must use a single-dimensional array or collection of JavaBeans. Multidimensional arrays are not supported for indexed properties. For more information on indexed properties along with a working example, see question 6 of the JavaRanch Struts FAQ [ August 14, 2007: Message edited by: Merrill Higginson ]