I\'m adding a user validator using the initBinder method:
initBinder
@InitBinder protected void initBinder(WebDataBinder binder) { binder.setVa
Declare request as
(... , Model model,HttpServletRequest request)
and change
model.addAttribute(customerPayment);
to
request.setAttribute("customerPayment",customerPayment);