title: Set path of the radiobutton in jsp form
body: <p>I am using spring aplication 2.5. I have a list of the radio buttons displayed using list of the objects on the jsp. I want to set the path of the radiobuttons to its respective </p>
  
  <pre><code>objects in the list.
  &lt;form:form commandName = "artifact" name="formradioquest"&gt;
      &lt;c:forEach var="questionArtifact" items="${artifact.questionGroupDetails}"&gt;
          &lt;c:forEach var="answerOption" items="${questionArtifact.question.answerOptions}"&gt;
              &lt;form:radiobutton path="choosenAnswers" value="${answerOption}" label="${answerOption.answerText}" cssClass="styled"/&gt;
          &lt;/c:forEach&gt;
      &lt;/c:forEach&gt;
      .
  .
  &lt;/form:form&gt;
      public class Artifact{
          List&lt;questionGroupDetails&gt; questionGroupDetails;
          .
          .
      }
      public class questionGroupDetails{
          Question question;
          AnswerOption choosenAnswers;
          .
          .
  
      }
      public class Question{
          List&lt;AnswerOption&gt; answerOptions;
          .
          .
  
      }
  </code></pre>
  
  <p>How can I set the path variable of the radio buttons to the 'choosenAnswers' variable in QuestionGroupDetails class. Because when I use this code, it actually expects  'choosenAnswers' variable in Artifact. Please help.</p>