I'm building a spring mvc application. Now the problem I have is the following.
I have a controller which adds a DayInfo[][]
to my ModelMap
.
(DayInfo
has an id
, a title
(String
) and Text
(also String
).
Now the problem I have is that I have no problem displaying this DayInfo[][]
with <foreach>
tags in my jsp.
However I'm outputting the Title
property as an input box(type text), and I'd like to be able to update this value (and thus saving it to be a database but that shouldn't be a problem). However I'm having trouble with binding this value to the input box so that it is actually returned to the controller.
If anyone has some advice it would be welcome.