title: thymeleaf set value for 'name' 'id' 'value' attr for input label
body: <p>I have a snippet in jsp file as following</p>
  
  <pre><code>&lt;c:forEach var="question" items="${questionList }"&gt;
      &lt;p&gt;{{ question.question }}&lt;/p&gt;
  
      &lt;c:forEach var="answer" items="${question.answerList }"&gt;
          &lt;input type="radio" name="${question.id }" id="${answer.id }" value="${answer.sequence }"&gt;
          &lt;label for="${answer.id }"&gt;${answer.answer }&lt;/label&gt;
      &lt;/c:forEach&gt;
  
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>now I use thymeleaf template, I don't know how to implement it in thymeleaf. especially, I don't konw how to get <code>name</code> attr for <code>input</code>,</p>
  
  <pre><code>&lt;div th:each="answer : ${question.answerList }"&gt;
      &lt;input type="radio" name="how to do?" id="how to do?" value="how to do?" th:value="${answer.sequence}"&gt;
      &lt;label th:text="${ans.answer}"&gt;&lt;/label&gt;
  &lt;/div&gt;
  </code></pre>