Is it possible for struts to handle form beans (using DynaForms or
anything else) to pass values to an Action Form from a form where the
field names themselves are dynamic?
For example, say I want to create a generic site for creating simple
surveys, where someone would come and say: ask for "Name", "Address" and
"Sex". These would be stored in the DB, and when someone came to answert
the survey, a form would be created, based on these data stored in the
DB, where the user would see textfields for each of them.
Then, in the Action Form, I would do:
String[] fieldNames = getDBNamesForSurvey (surveyId);
for (int i=0; i<fieldNames.length (); i++)
doSomethingWith (form.get (fieldNames[i]));
Thanks,
Zorzella
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]