> Hello, > Actually yes there is a validate method if your actionform extends > dynaActionform > the 'bad side' will be that you have declared all properties, (I suppose > to > avoid writing java code) and then you end upt writing code for > validation.. > > probably It won't be a nice solution, but that's one > the other one I suppose Is to write your own custom validator..
No, he is not forced to declare attributes (it would make using DynaActionForm sensless). Just use org.apache.commons.beanutils.PropertyUtils: String foo = (String) PropertyUtils.getSimpleProperty(form, "foo"); String bar = (String) PropertyUtils.getSimpleProperty(form, "bar"); Boolean baz = (Boolean) PropertyUtils.getSimpleProperty(form, "baz"); String[] mice = (String[]) PropertyUtils.getProperty(form, "blindMice"); Etc... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]