Greetings,
I am attempting to gather user input from a web page using a table. Per the kind reply to my previous post, I am using JSTL to iterate over a couple of lists and retrieving the information from an array of input tags on the page. The information is being successfully written, to a
string array attribute, which is defined in my bean.
It was suggested previously that I iterate over a
List<Object>. I would prefer to do this, and populate a 2D array of strings in my bean, rather than returning one long one dimensional array which is currently the case. Would anyone be able to suggest how I might structure my
c:forEach loops to accomplish this? Thank you.
Here is the bean code:
Table records are built from a list of strings:
Here is the
jsp (with JSTL!). This is what I would like to rewrite to populate a 2D array.
The bean property inputFields is registered in the jsp page and is updated when the page is submitted. The next
page gets the array from the bean:
Thanks again.