In chapter 3 of this book the author uses the reset() method of an ActionForm to prepolute a form. This concept is interesting and can be very usefull. However in my case I would need to populate forms depending on some logic. Therefore I can't use a reset() method that will prepolate the form in any case.
I'm thinking about creating an Action that will prepopulate the form directly.
SomeForm someForm = new SomeForm();
However I don't think that it is very nice to do this especially since I'm dependend that the reset() method will not be called and overwrites my changes. As well I'm putting logic that is heavily connected to the FormBean into some Action.
Any suggestions? Any comments on pre-population of forms within struts is welcome!
It seems there are not many people here yet... Hopefully that will change soon