title: how to get the value of a dynamically generated radio button in servlet
body: <p>i want to get the value of a dynamically generated radio button in servlet, below is my jsp code </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;c:forEach items="${questions1}" var="quest"&gt;
              &lt;tr&gt;
                  
                  &lt;td&gt;${quest.questions}&lt;/td&gt;
                  
              &lt;/tr&gt;
              
              &lt;tr&gt;
                  &lt;td&gt;&lt;input name="${quest.questionId}" type="radio" value="${quest.option1}" /&gt;${quest.option1}&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;input name="${quest.questionId}" type="radio" value="${quest.option2}" /&gt;${quest.option2}&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;input name="${quest.questionId}" type="radio" value="${quest.option3}" /&gt;${quest.option3}&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;input name="${quest.questionId}" type="radio" value="${quest.option4}" /&gt;${quest.option4}&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;input name="${quest.questionId}" type="radio" value="${quest.correctAns}" /&gt;${quest.correctAns}&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;&lt;td&gt;&lt;input name="hcorrectAns" type="hidden" value="${quest.correctAns}" /&gt;&lt;/td&gt;&lt;/tr&gt;
              &lt;/c:forEach&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>i have tried using <code>request.getParameter("quest.questionId");</code> and <code>request.getParameter("${quest.questionId}")</code> it didnt work cos am getting null value. Thanks </p>