title: Is there any way to configure Struts to bind null instead of empty String?
body: <p>When user decides to leave the field in the form empty the Apache Struts binds empty <code>String</code> as value for properties in the <code>ActionForm</code>. Is there any way to modify the behavior globally and opt for <code>null</code> instead of empty <code>String</code>?</p>
  
  <p>I know that Spring MVC does exactly the same, but there is also <a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/beans/propertyeditors/StringTrimmerEditor.html" rel="nofollow">StringTrimmerEditor</a> that can be registered as property editor to trim strings to <code>null</code>.</p>