@InitBinder public void initBinder(WebDataBinder webDataBinder){
  SimpleDateFormat dateFormat=new SimpleDateFormat(DATE_FORMAT);
  dateFormat.setLenient(true);
  webDataBinder.registerCustomEditor(Date.class,new CustomDateEditor(dateFormat,true));
}

@ InitBinder public void initBinder ( WebDataBinder webDataBinder ) { SimpleDateFormat dateFormat = new SimpleDateFormat ( DATE_FORMAT ) ; dateFormat . setLenient ( true ) ; webDataBinder . registerCustomEditor ( Date . class , new CustomDateEditor ( dateFormat , true ) ) ; }
initiates the data binding from web request parameters to javabeans objects
