RE: Validating DynaBean nested beans with a custom validator.

2005-01-12 Thread Daffin, Miles (Company IT)
ishore Senji [mailto:[EMAIL PROTECTED] > Sent: 11 January 2005 18:58 > To: Struts Users Mailing List > Subject: Re: Validating DynaBean nested beans with a custom validator. > > This shoud do it. Isn't it? > > private static PersonFormBean getPersonFormBean(Object

Re: Validating DynaBean nested beans with a custom validator.

2005-01-11 Thread Kishore Senji
This shoud do it. Isn't it? private static PersonFormBean getPersonFormBean(Object bean, String property) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException{ return (PersonFormBean) BeanUtils.getProperty(bean, property); }