title: Struts Formatting
body: <p>I am trying to format a double value to two decimal places in a struts <code>&lt;html:text&gt;</code> tag. ex)</p>
  
  <pre><code>&lt;html:text property="freight" size="9" maxlength="9" /&gt;
  </code></pre>
  
  <p>the value inside freight is a double for example $100. When it displays, it shows it as 100.0, not 100.00 (like I want it to).</p>
  
  <p>I would like to display all double values to two decimal places but the <code>&lt;html:text&gt;</code> does not have a format property. </p>
  
  <p>Could someone please help?</p>