It could be at build time just fine, but I am using maven. So how could I integrate this into my build then?
Dave Newton wrote: > Mick Knutson wrote: > > >I am trying to figure out if there is a way to have the Validator > >framwork verify that the form element names defined in the > >validation.xml, are in synch with my ActionForms, but not jst at > >runtime. Right now if there is a mismatch, then I get an error in the > >form of an error, sometimes obscure, on the field that is mismatched. > > > >So I would like to be able to enforce the validating of the > >validation.xml forms at startup time if possible. > > > > > I solved a similar problem at build using two different methods on > several projects: > > 1) Generated validation.xml, torque schema, chunks of > DynaValidatorActionForm form-beans for struts-config.xml, parts of > application resources, java classes for marshalling within Actions (I > didn't always use this part, actually :/ and JSP chunks (form tiles) > from an over-arching XML configuration file. This doesn't do what you're > asking, but it does make sure that things are in sync, and was actually > kinda nice. > > 2) Used XML parser to check names of fields in validation.xml against > struts-config action "name" attributes linked against struts-config > form-bean defs, sort of like a 'diff' for various chunks of XML. This > also ran as an ant task, not on startup or anything, but I suppose it > could be adapted to that. > > To me, this seems like a problem better solved during the build process > rather than deployment/startup. > > Dave Newton > Technical Lead (MonkeyLips OmniGalgomon Project) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Mick Knutson (925) 951-4126 HP Consulting Services Safeway (Blackhawk Fastword Project) J2EE Architect --- "MMS <safeway.com>" made the following annotations. ------------------------------------------------------------------------------ Warning: All e-mail sent to this address will be received by the Safeway corporate e-mail system, and is subject to archival and review by someone other than the recipient. This e-mail may contain information proprietary to Safeway and is intended only for the use of the intended recipient(s). If the reader of this message is not the intended recipient(s), you are notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately. ============================================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]