Hi,

Is it possible to access a field inside another field?

For example:

<OUT>
            <A/>
        <B>bbb</B>
        <C>
                <D>23</D>
        </C>
        <C>
                <D>0</D>
        </C>
<OUT/>

I want to access the "D" values... in order to apply a validation class:

public class Validator {

public Validator() {
}

public static boolean isPositive(Object bean, Field field) {
          return new Integer(ValidatorUtils.getValueAsString(bean, field
                            .getProperty())).intValue() > 0;
         }
}

Thanks,
Ricardo Saraiva


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to