title: java sending hashmap to Freemarker template not working correct, undefined parameter
body: <pre><code>Map&lt;String, String&gt; model = new HashMap&lt;String, String&gt;();
  model.put("A", "1");
  model.put("b", "2");
  model.put("c", "3");
  try{
   content.append(FreeMarkerTemplateUtils.processTemplateIntoString(configuration.getTemplate(ftlName), model));
  ...
  </code></pre>
  
  <p>and Ftl file looks like this :</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;
  ${model["A"]}
  
  &lt;#list model?keys as prop&gt;
      ${model[prop]}
  &lt;/#list&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Hwoever I am getting the error :</p>
  
  <pre><code>Expression model is undefined on line 6, column 3 in vslEmail.ftl.
  The problematic instruction:
  ----------
  ==&gt; ${model["A"]} [on line 6, column 1 in vslEmail.ftl]
  ----------
  
  Java backtrace for programmers:
  ----------
  freemarker.core.InvalidReferenceException: Expression model is undefined on line 6, column 3 in vslEmail.ftl.
  </code></pre>
  
  <p>I get the same error if I remove try to access <code>model</code> using only the list directive ... any help appreciated </p>