title: Spring MVC - How to display blank textbox when integer value is zero
body: <p>Im using spring, hibernate, java, and jsp. My problem is that when the integer value is zero it displays <code>0</code> in my textbox. I want to display only empty string but Idk how to do it. Please help.</p>
  
  <p>In my jsp:</p>
  
  <pre><code>&lt;form:form method="POST" commandName="division"&gt;
  ...
  ...
      &lt;form:input path="number"/&gt;
  &lt;/form:form&gt;
  </code></pre>
  
  <p>In my domain:</p>
  
  <pre><code>/**
   * Get the number of the division.
   * @return The number.
   */
  @Column(name = "NUMBER")
  public int getNumber() {
      return number;
  }
  
  /**
   * Set the number of the division.
   * @param number The division number.
   */
  public void setNumber(int number) {
      this.number = number;
  }
  </code></pre>