All the validations packaged with Struts have the ActionForm passed to the validation method and then they retrieve the property using reflection:
String value = ValidatorUtils.getValueAsString(bean, field.getProperty()); So you can just get the two property values from the ActionForm in your validation method. Take a look at the FieldChecks class to see how Struts does it. If that doesn't help then post the xml thats configuring your validation and the method signature. Niall On 7/21/06, Scott Van Wart <[EMAIL PROTECTED]> wrote:
I have a custom validation routine (class mapped through validator-rules.xml). I'd like to be able to pass two fields to my routine rather than just one. Is there any way of doing this? - Scott
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]