title: Spring MVC Boolean not binding to checkbox
body: <p>Asking and then answering my own question for posterity's sake. I used a tag like this on my page:</p>
  
  <pre><code>&lt;form:checkbox path="Active" label="label" /&gt;
  </code></pre>
  
  <p>This checkbox would correctly be checked (or unchecked) based on the boolean value pulled from the database. However, changes to the checkbox were never being bound to the entity and persisted back to the database. It turns out the problem was due to how my entity was constructed. My entity had a property and methods like this:</p>
  
  <pre><code>private Boolean Active;
  
  public Boolean getActive() { 
      return this.Active;
  }
  
  public Boolean setActive(Boolean active) {
      this.Active = active;
  }
  
  public boolean isActive() {
      if (getActive() == null) {
          return false;
      }
      return getActive().booleanValue();
  }
  </code></pre>
  
  <p>It turns out that the "isActive()" method interferes with the value selected on the checkbox being bound back to the Active Boolean property on the entity. Renaming the method to anything else (e.g. "isPersonActive()" ) resolves the problem.</p>