Package org.springframework.web.bind

Examples of org.springframework.web.bind.WebDataBinder.bind()


    WebDataBinder binder = new WebDataBinder(new TestBean(), "bean");
    Map<String,String> values = new HashMap<String, String>();
    values.put("name_foo", "rubbish");
    // This is what we need...
    values.put("name", WebUtils.findParameterValue(values, "name"));
    binder.bind(new MutablePropertyValues(values));
    TestBean bean = (TestBean) binder.getTarget();
    assertEquals("foo", bean.getName());
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.