title: How to pass List from JSP to ACtion Class
body: <p>Good day!</p>
  
  <p>I want to convert my code into STRUTS.. and i tried not using the getParameter in my Action Class..
  But I can't pass the information from JSP to Action Class without using the getParameter.</p>
  
  <p>JSP:</p>
  
  <pre><code> &lt;html:form action="EditExam"&gt;
                  &lt;input type = "hidden" name = applicantNumber value="${applicantForm.applicantNumber}"  &gt;
  
                  &lt;table&gt;
                      &lt;c:forEach var="exam" items="${examList}"&gt;
                          &lt;input type = "hidden" name ="examId" value="${exam.examId}"  &gt;
                         &lt;tr&gt;
                             &lt;td&gt;Exam Type: &amp;nbsp&lt;/td&gt;       &lt;td&gt;&lt;input type="text" value="${exam.examName}" name="examType" readonly ="true"&gt;&lt;/td&gt;
                         &lt;/tr&gt;
                         &lt;tr&gt;
                             &lt;td&gt;Date: &lt;/td&gt;                 &lt;td&gt;&lt;input type="text" value="${exam.examDate}" name="examDate" class="date"&gt;&lt;/td&gt;
                         &lt;/tr&gt;
                         &lt;tr&gt;
                             &lt;td&gt;Result: &lt;/td&gt;               
                             &lt;td&gt;
                                  &lt;select name = examResult&gt; 
                                      &lt;option value="Pass" ${exam.examResult == 'Pass' ? 'selected' : ''}&gt;Pass&lt;/option&gt;
                                      &lt;option value="Fail" ${exam.examResult == 'Fail' ? 'selected' : ''}&gt;Fail&lt;/option&gt;
                                      &lt;option value="" ${exam.examResult == '' ? 'selected' : ''}&gt;&lt;/option&gt;
                                  &lt;/select&gt;   
                             &lt;/td&gt;   
                         &lt;/tr&gt;
                          &lt;tr&gt;&lt;td&gt;&amp;nbsp&lt;/td&gt;&lt;td&gt; &amp;nbsp&lt;/td&gt;&lt;/tr&gt;
                      &lt;/c:forEach&gt;
                  &lt;/table&gt;
  
                  &lt;input type="submit" class="saveButton" value="SAVE"&gt;
  
              &lt;/html:form&gt;
  </code></pre>
  
  <p>ACTION CLASS:</p>
  
  <pre><code>public ActionForward execute(ActionMapping mapping, ActionForm form,
              HttpServletRequest request, HttpServletResponse response)
              throws Exception {
          // TODO Auto-generated method stub
  
          String forward = "success";
  
          ApplicantForm applicantForm = (ApplicantForm)form;
          int applicantNumber = applicantForm.getApplicantNumber();   
  
          String examDate[] = request.getParameterValues("examDate");
          String examResult[] = request.getParameterValues("examResult");
          String examId[] = request.getParameterValues("examId");
              //MORE CODES AFTER...
  </code></pre>
  
  <p><strong>My problem is:</strong>
  How can I pass the data from JSP to Action Class without using the getparameter.</p>
  
  <p>TO CONSIDER: </p>
  
  <ol>
  <li>My Exam is a list...</li>
  <li>The EDIT Button is outside the loop... so all changes inside the loop should be captured.. (Do i need to pass the ArrayList? How can i catch it on the Action FOrm?)</li>
  </ol>
  
  <p>You're reply would be highly appreciated. THANK YOU.</p>