Sandeep,
You can do complex validations in your ActionForm validate method. You
can also still invoke Validator validations by calling super.validate()
in your validation method if you are extending
|org.apache.struts.validator.action.ValidatorForm
I have found that there are many situations where complex validations
are more easily handled in a validate() rather than trying to use
validwhen or requiredif in the validation.xml
-Richard
|
Sandeep Dhanuka wrote:
Hi Everyone,
I am using struts validatior to valiate my form on JSP and dont want
to take
validation to my Action class.
I have a check box and a text box on my JSP. I want to validate text
box to
have 19 characters when check box is not checked and 17 characters when
checkbox is checked.
How should I go about solving the problem using "validwhen".
Regards
Sandeep
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]