title: Send a javascript var to my model in FTL
body: <p>I have a list of checkboxes, with this function i get my array of checked items:</p>
  
  <pre><code> var selected = new Array(); 
   $('#bloqCountries input:checked').each(function() { selected.push($(this).val()); });
  </code></pre>
  
  <p>I have a model class and i need to send by parameter this array making something like this:</p>
  
  <pre><code> [#assign searchResults =model.searchContent(selected) /]
  </code></pre>
  
  <p>But Javascript is in client side and Freemarker in server side... </p>
  
  <p>Then i don´t know how to get this array in my model to call my modelClass..</p>
  
  <p>My idea is making by the request, transforming the array in string and making a split() method in java to delete the "-" between the words</p>
  
  <p>I don't know how to send this content because i´m not using ajax and I don't think its necessary.</p>