On 12/4/05, Deepa Khetan <[EMAIL PROTECTED]> wrote: > I need sme help with validator framework.. I have a LogonForm which is being > mapped with 2 different JSPs. Both the JSPs have the password field, but the > validation for the field are diferent(The minlength and maxlength for both > the pages is different). On the basis of the value of some other field(say, > field1) i need to validate the pasword field. How can i do this??
You can use one of the form bean types with 'Action' in the name, such as ValidatorActionForm. http://struts.apache.org/struts-doc-1.2.7/api/org/apache/struts/validator/ValidatorActionForm.html These are mapped by path instead of form bean name, so you can have a different set of rules for each action mapping. In validation.xml, you might have: <form name="/register"> which matches up with (from struts-config.xml) <action path="/register" ... > HTH, -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]