I have a requirement where the HTML form input paramater names are dynamically generated and hence I cannot have them as property in ActionForm bean. How can I handle this in Struts framework? The input field I am trying to use will of type select.
DynaForms are configured in struts-config and can therefore only contain specified (number of) parameters. What you can do, is write your own ActionForm containing a single map and populate this map yourself by writing a utility method for this. Unfortunately, you will not be able to use Struts up to its max, but that's a small price to pay for still being able to use dynamic properties. Ruud.
After reading Ruud's response, I was just curious as to how one would be able to populate a map of attribute/value pairs when the methods on an ActionForm are meant to be used by Struts using relfection. You would still somehow need methods that are setters and getters for particular attribute names, no?