title: How to access an object's public fields from a Velocity template
body: <p>Here is my object class:</p>
  
  <pre><code>public class Address
  {
      public final String line1;
      public final String town;
      public final String postcode;
  
      public Address(final String line1, final String town, final String postcode)
      {
          this.line1 = line1;
          this.town = town;
          this.postcode = postcode;
      }
  }
  </code></pre>
  
  <p>I add it to the velocity context like this:</p>
  
  <pre><code>Address theAddress = new Address("123 Fake St", "Springfield", "SP123");
  context.put("TheAddress", theAddress);
  </code></pre>
  
  <p>However, when writing the template, the following will not render the address fields (however, it works fine when I add getters to the Address class)</p>
  
  <pre><code>&lt;Address&gt;
      &lt;Line1&gt;${TheAddress.line1}&lt;/Line1&gt;
      &lt;Town&gt;${TheAddress.town}&lt;/Town&gt;
      &lt;Postcode&gt;${TheAddress.postcode}&lt;/Postcode&gt;
  &lt;/Address&gt;
  </code></pre>
  
  <p>Is it possible to access public fields on objects from Velocity without adding getters?</p>