title: get queryString of a URL on FreeMarker
body: <p>learning FTL here.</p>
  
  <p>I'm trying to get add a query string on my FTL page, like <code>http://localhost/search</code>, i'd like to add a query string on the URL, say <code>http://localhost/search?bing</code> so that user could switch with the default setting when there is no query string. </p>
  
  <p>However, I have no luck on grabbing the queryString from the URL. 
  I'm also trying to avoid using a JavaScript solution on this.</p>
  
  <p>here's my code: </p>
  
  <pre><code>&lt;#if RequestParameters.bing?exists &gt;
      &lt;#assign useServer = "http://www.bing.com"&gt;
  &lt;#else&gt;
      &lt;#assign useServer = "http://www.google.com"&gt;
  &lt;/#if&gt;
  
  &lt;h1&gt;${useServer}&lt;/h1&gt;
  </code></pre>
  
  <p>typing in the queryString into the url still returns <code>http://www.google.com</code> on the <code>h1</code>. </p>