title: Sending dynamic data from JSP to servlet
body: <p>I hava a form which is populated dynamically in my JSP. Every row has a checkbox element attached to it. The user can click can select any number of rows and when he submits the form I want all the rows selected be passed to the servlet. How do i do this? This is my form element in the JSP</p>
  
  <pre><code>&lt;form name="Select_Reqs" action="associate" method="post"&gt;
          &lt;table width="500" cellpadding="1px" cellspacing="0px"&gt;
              &lt;tr&gt;
                  &lt;td&gt;Req Number&lt;/td&gt;
                  &lt;td&gt;Business Group&lt;/td&gt;
                  &lt;td&gt;Hiring Manager&lt;/td&gt;
              &lt;/tr&gt;
              &lt;% List &lt;ReqDetailsBean&gt; all_reqs = (List &lt;ReqDetailsBean&gt;) request.getAttribute("req_list"); 
                  request.removeAttribute("req_list");
                  ReqDetailsBean item = new ReqDetailsBean();
                  int i=0;
                  if(all_reqs.isEmpty()){
                      %&gt;
                      &lt;h1&gt;List is Empty&lt;/h1&gt;
                  &lt;%}
                  while(i&lt;all_reqs.size()){
                      item=all_reqs.get(i);
                      i++;
                      %&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;%= item.getJob_code() %&gt;
                      &lt;/td&gt;
                      &lt;td&gt;
                          &lt;%= item.getBusiness_unit() %&gt;
                      &lt;/td&gt;
                      &lt;td&gt;
                          &lt;%= item.getHiring_manager_name() %&gt;
                      &lt;/td&gt;
                      &lt;td&gt;
                          &lt;input type="checkbox" name="select_req"/&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;% }%&gt;
          &lt;/table&gt;
                  &lt;input type="submit" name="Submit" action="associate"/&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>I know I can do this in AJAX. But i dont know that technology and I have a time constraint on me. Any help is really appreciated.</p>