Hi guys,
The validation framework provided by
struts is really great ... but i am facing certain problems in certain scenarios like this :-
1) On my
jsp page, i dispaly certain fields based on upon certain conditions like the user is an admin or not ...etc., In such a case, my "required" validation defined for that field in the validation framework must not be fire ! .... But then how do we conditionally control this struts 1.2.8 ?
2) Certain fields must be filled only if a particular field is not empty ! For example :-
If
AT ALL existing password field is displayed only then, the new and confirm password must be filled! else they are optional !... Can such conditional validation be used in the validation.xml ?
Please, some guide me ! ....
...i am really stuck up at this point since a long time and not able to figure out a work around.
Please Merill ...do you have any idea how this can be done ?
Thanks and Regards
mkar Patkar