posted 17 years ago
Good morning,
I am displaying a table of values on a jsp page using an array of input tags. The name attribute of the tags is dynamically generated to correspond to an array element in my Java bean. The trouble is, the attribute in the bean is not being populated when the page is submitted. The name attribute is currently of the form "cells[i][j]". I have also tried the form "cells" and "cells[]" to no avail.
Has anyone had any luck writing array values back to a bean using the name attribute? Can anyone suggest a better way to create a table, on a web page, which may be edited and the resulting values sent to a bean? Thanks in advance.
Here are the relevant lines of code from the bean:
Here is the jsp:
This is where I log the values to a file on the next jsp page: