1st of all spring-roo is not to blame for this, spring by default uses java property editor for String which converts it to empty string if no value is provide.
Springs own StringTrimmerEditor can be used inside controllers as shown below.
@InitBinder public void initBinder(WebDataBinder binder) { binder.registerCustomEditor(String.class, new StringTrimmerEditor(Boolean.TRUE)); }
Hussain
2010-05-20 20:10:16