title: FreeMarker nested data : error while parsing
body: <p>While processing the below code:</p>
  
  <pre><code>template.process(data, filewriter);
  </code></pre>
  
  <p>template is an object of freemarker.template.Template class. created by</p>
  
  <pre><code>Configuration cfg = new Configuration(new Version("2.3.23"));
  cfg.setDefaultEncoding("UTF-8");
  try {
      cfg.setDirectoryForTemplateLoading(new File(
              "dir/to/templates"));
  } catch (IOException e) {
      e.printStackTrace();
  }
  
  this.template = cfg.getTemplate(path);
  </code></pre>
  
  <p>filewriter is the FileWriter object </p>
  
  <p>data is a map, which is populated as </p>
  
  <pre><code>key -&gt;"page.title", value -&gt;"Dummy Page title"
  key -&gt;"page.body", value -&gt;"Dummy Page Body"
  </code></pre>
  
  <p>I have used the following template</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;${page.title}&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p&gt;This page is generated using freemarker
  &lt;/p&gt;
  &lt;p&gt;
  ${page.body}
  &lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>While processing, I am getting following error:</p>
  
  <pre><code>FreeMarker template error:
  The following has evaluated to null or missing:
  ==&gt; page  [in template "default.ftl" at line 3, column 10]
  
  ----
  Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use &lt;#if myOptionalVar??&gt;when-present&lt;#else&gt;when-missing&lt;/#if&gt;. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
  ----
  
  ----
  FTL stack trace ("~" means nesting-related):
      - Failed at: ${page.title}  [in template "default.ftl" at line 3, column 8]
  ----
  </code></pre>
  
  <p>Please suggest what am I doing wrong?</p>
  
  <p>PS: This whole setup works fine, if I change the name "page.title" to "pagetitle" and "page.body" to "pagebody" at both the places.
  I really want to use '.' to namespace my values.</p>