HI Anthony, I'm not sure if this considered bad practice but I validate my forms in the business logic code. This enables me to control more precisely the actions on a validation error. Typically, on a validation error I return the submitted bean as well as the error. This way site users don't lose their entered data.
Zoran > Hi there folks, > > I am writing a webapp which has dynamically changing form fields on any > given page. They change both in number and display format etc etc I > therefore want to use some kind of collection of beans which my JSP can > iterate through to display the form fields in order and format according to > properties in the beans. > > My problem occurs when the form fields are edited, submitted and validated. > In the event of validation failure, the form is redisplayed with the > html:errors and the original values instead of the updated values because of > course the Collection used to render the page is now out of sync with the > values in the formBean itself. Are there existing patterns to update the > beans in a collection upon submission/validation? I am thinking I have to > overload the Validate method in my ValidatorForm to populate the Collection > from the form submissions? I have noticed that BeanUtils may help here???? > > Thanks for any help > Anthony > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]