title: onclick thymeleaf dynamic url parameter
body: <p>i'm a starter in Spring MVC and i make somes mistakes ... so i want to forge a dynamic URL with a button and Thymeleaf, but it doesn't works. I think about escape quote or similar, the ${key} is not correct in the evaluation ?</p>
  
  <pre><code>&lt;tr th:each="key: ${serverBean.getServerB().keySet()}"&gt;
      &lt;td&gt;
          &lt;span th:text="${serverBean.getServerB().get(key)}" /&gt;
      &lt;/td&gt;
      &lt;td align="center"&gt;
          &lt;span th:text="${key}" /&gt;
      &lt;/td&gt;
      &lt;td th:if="${protoStatusBean.getStatus(key)}" bgcolor="lime" /&gt;
      &lt;td th:unless="${protoStatusBean.getStatus(key)}" bgcolor="red"/&gt;
      &lt;td&gt;
          &lt;button th:onclick="window.location.href='/update?server=${key}'"&gt;
              &lt;img src="./images/wrench.png" height="15" width="15"&gt;
          &lt;/button&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>thanks for your help and patience</p>