Spring custom validation errors.# Java - 爪哇娇娃
g*g
1 楼
I know how to specify a validator to validate the data from input, but
within
SimpleFormController, after you finish inital check, sometimes you need to
perform a database check.
e.g. Make sure the new password doesn't equal to the old one.
I check the document, it seems I have to call the showForm method if
I find errors. The error is of type BindException, Now the only question is
how to I construct a BindException so that it supports I18N?
within
SimpleFormController, after you finish inital check, sometimes you need to
perform a database check.
e.g. Make sure the new password doesn't equal to the old one.
I check the document, it seems I have to call the showForm method if
I find errors. The error is of type BindException, Now the only question is
how to I construct a BindException so that it supports I18N?