title: Invoke Java method with parameters from Freemarker
body: <p>The following FTL markup  works fine for me and calls getWidgets() in my server-side JiveActionSupport object:</p>
  
  <pre><code>&lt;#list widgets! as widget&gt;
    -- do something with widget.sku
  &lt;/#list&gt;
  </code></pre>
  
  <p>However, I really need an inner list that depends on a property of widget, something like this:</p>
  
  <pre><code>&lt;#list widgets! as widget&gt;
    &lt;#list manufacturers(widget.sku)! as manufacturer&gt;
    -- do something with manufacturer
    &lt;/#list&gt;
  &lt;/#list&gt;
  </code></pre>
  
  <p>I have tried to implement the server-side code, as either:</p>
  
  <pre><code>public List&lt;Manufacturer&gt; getManufacturers(int sku);
  public List&lt;Manufacturer&gt; getManufacturers(String sku);
  </code></pre>
  
  <p>But both result in 'Expression manufacturers is undefined at line 123'.</p>
  
  <p>How can you pass parameters to methods of the current JiveActionSupport object?  Thanks.</p>