execution of onSUbmitAction method even if there are some validation errors
I'm facing a strange behaviour.
IN my controller, i'm doing validation as well using onBindAndValidate method. If some errors, i say errors.rejectValue("string", "error msg");
I found that even if there are some errors, it successfully executes onSubmitAction method.
For this controller, a i have a validator class attached to it. I'm doing validation partially on validator class as well as onBIndAndValidate methods.
Please let me know if something wrong in my way of doing things. Also, how can i avoid executiuon of onSubmitAction method if there is some validation errors.
Thanks so much.