jquery - Form validation error handling of Struts 1.3 after submit the form with Ajax call -


the environment struts 1.3 , jquery , have request of ajax retrieve json data when submit form. works fine except form validation.

the problem ajax datatype set json return format of validation not json. so, parser error in fail() method.

is there way returned validation messages if textstatus parser error in fail()? or other suggestions handle situation?

as far stay on same page when doing ajax call return response via messages doing success callback, not fail.

you have turn validation framework off , use commons validator utils perform validations hands.


Comments