> Currently, every form field has to have equivalent field in ActionForm bean,
> with both getter and setter method. This requires that a new ActionForm be
> generated for each new Struts form (with additional fields).
>
> Our applicaiton requires 'extensibility', ie. HTML/JSP designer should be
> able to add new fields to the form without breaking serverside Java code,
> including Struts.
>
> I've made some minor changes to Struts 0.5 to achieve such extensibility.
> Basically, it use a Hashtable to save and retrieve extra fields that do not
> appear in the ActionForm.
This is something I really need. I have my user profile fields generated
from a database template table, so that it might contain data for
a "First Name", "Last Name", "Address 1", "Address 2". TO make it reusable
the next application might use "Full Name" and the application knows
how to read the template table and display the correct type of
text field and JavaScript validation function.
I thought using String[] getXXX and setXXX(String[]) methods
might have worked, but didn't.