Roger Kjensrud wrote:
> Hello,
>
> I wonder if any of you have implemented an automatic way of populating the
> properties in the ActionForm? It's kind of tedious to write all these setter
> and getter methods....
>
For generating the code of a form bean automatically, that is something I want
to look at in the 1.1 time frame. As well, we need to look at use cases where
you do not know the property names ahead of time, and need them to work totally
dynamically.
For populating the properties, if you are trying to copy things from a "business
logic" bean that has the same property names, consider the
PropertyUtils.copyProperties() method.
>
> I found an
> article(http://www.javaworld.com/javaworld/jw-12-2000/jw-1201-struts.html)
> describing one way of doing this, and I would be interested in hearing some
> feedback on doing it that way.
>
> Thanks,
> Roger Kjensrud
Craig McClanahan