title: how to get the values of list of radio buttons in jsp
body: <p>I am a beginner to JSP. I am passing a list of images from a JAVA controller to JSP. In JSP I have created 2 radio buttons for each image in the list by iterating over the list. Now how will I get the radio button values for each image in JAVA controller.</p>
  
  <p>My JAVA controller:</p>
  
  <pre><code>String[] imagesList = {"images/team.JPG", "images/team.JPG", "images/team.JPG", "images/team.JPG"};
  model.addAttribute("imagesList",imagesList);
  </code></pre>
  
  <p>My Jsp:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;c:forEach var="image" items="${imagesList}" varStatus="i"&gt;
      &lt;input type="radio" name="${image}" value="${image}"/&gt;Yes
      &lt;input type="radio" name="${image}"  value="${image}"/&gt;No    
  &lt;/c:forEach&gt;
  </code></pre>