You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Brett G. Palmer" <pb...@qwest.net> on 2001/04/18 07:36:02 UTC
FormAction Bean for dynamically created forms
What is the best way to develop a FormAction bean for HTML forms that are
dynamically generated? In other words, the FormAction bean won't know the
parameters names of the form until runtime. For example, if I wanted to
process HTML forms for relational database tables dynamically. Each input
element could represent a column in the table. I have a Record class that
contains a HashTable of the fields for a particular table. The Record class
can be used to verify that the submitted values are correct for each field,
but I can't have a static FormAction bean that knows every form paramter.
Any suggestions would be greatly appreciated.
Thanks in advance.
Brett