struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Kremer" <>
Subject Validator with Map-backed forms
Date Sun, 05 Jan 2003 18:34:26 GMT

I've asked this question before but so far haven't received any feedback on
this subject:
Is there any way to use the Validator with map-backed Action Forms?

I'm currently using Map-backed forms to manage forms that are dynamically
created from a database, where the number of fields, their names, their
types are not necessarily known at deployment (so no DynaActionForm). I'm
wondering if it's still possible to use the (Commons) Validator to validate
the form fields.

I understand that the normal usage requires form elements in the
validator-rules file to match that of a form-bean element in the Struts
config file. That's not really possible in my case because I don't know
ahead of time what the fields will be (by name or type, in number, etc.).
Would it be possible to programmatically create the formset and form
elements Validator requires but still use them in conjunction with the
validations file (where the validator elements are stored), which would be
commonly shared between forms? Any pointers on how I can accomplish this?
Or, is there a better way to handle dynamic (i.e., on-the-fly or real-time)
form creation with Struts?


Max Kremer

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message