I have a fairly simple JavaBean class to represent a business object. I also have an ActionForm which needs to hold the values for several of these beans, and I've decided to use a series of Maps to hold the properties in the ActionForm. The Map key is a
String property from the business object.
For example, I need to present properties from several Students on a single form. So I have:
In the
JSP I have:
The ActionForm and JSP work, I just can't find a
good way to reconstruct the set of students using BeanUtils or PropertyUtils in the target action when the form is submitted. At present I have all sorts of loops etc, and copying out the properties individually.
Please tell me I'm missing something and there's a MUCH better way of doing it!