title: print key/value in thymeleaf from hashmap/arraylist
body: <p>The code in java/springboot:</p>
  
  <pre><code>@RequestMapping(value = "results")
  public String results(
          Model model, 
          @RequestParam String searchType,
          @RequestParam String searchTerm) {
  
      model.addAttribute("columns", ListController.columnChoices);
      ArrayList&lt;HashMap&lt;String, String&gt;&gt; jobsbyval = JobData
              .findforValue(searchTerm);
      model.addAttribute("items", jobsbyval);
      return "search";
  }
  </code></pre>
  
  <p>The code in html/thymeleaf:</p>
  
  <pre><code>&lt;div&gt;
    &lt;table&gt;
      &lt;tbody&gt;
        &lt;tr th:each="item : ${items}"&gt;
          &lt;!--each loop begins --&gt;
          &lt;td th:text="${item}"&gt;&lt;/td&gt; //item.value or item.key dont work!!
  
        &lt;/tr&gt;
        &lt;!--loop ends --&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is the html ouput. </p>
  
  <pre><code>{header 1=something, header 2=Analyst, category 3=somename, location=somewhere, skill=Stats}
  </code></pre>
  
  <p>The desired HTML output(key/value) in table format would be: </p>
  
  <pre><code>header 1  something  
  header 2  Analyst 
  category  somename 
  location  somewhere 
  skill Stats
  </code></pre>