title: How do you access a model attribute (liste) in Jquery
body: <p>How can I read a model 'List' from Spring model and setting up it into a jquery in loop? I'm using Thymeleaf as Template Engine.</p>
  
  <p><strong>Spring-side: rdv.java</strong></p>
  
  <pre><code>@RequestMapping(value = "/RdvListe", method = RequestMethod.GET)
  public String RdvListe(Model model) {
  
      List&lt;Rdv&gt; listRdv=rdvMetierImp.listRdv();
  
      model.addAttribute("listRdv",listRdv);
  
      return "RdvListe";
  }
  </code></pre>
  
  <p><strong>Client-side: script.js</strong></p>
  
  <pre><code>$(function () {
      var events = [
          {
              title: 'Rdv with adam',
              start: '2017-06-09'
          }
      ];
  });
  </code></pre>
  
  <p><strong>Result is like this:</strong></p>
  
  <pre><code>$(function () {
      $.each(listRdv, function (key, value) {
          var events = [
              {
                  title: value.title,
                  start: value.date'
              }
          ];
      });
  });
  </code></pre>