Jsp 在servlet中检索整个表

Jsp 在servlet中检索整个表,jsp,jakarta-ee,servlets,Jsp,Jakarta Ee,Servlets,我想知道是否有可能从动态构建的表中获取所有行的值。 我想把它拿回来,就像请求的其他参数一样。getParameter(…) 可能吗 提前谢谢 我的桌子: <table id="table_produits" > <tbody> <tr> <td style="width: 80px;"><label for="u_codep">Produit </label>&l

我想知道是否有可能从动态构建的表中获取所有行的值。 我想把它拿回来,就像请求的其他参数一样。getParameter(…)

可能吗

提前谢谢

我的桌子:

<table id="table_produits" >
       <tbody>
          <tr>
              <td style="width: 80px;"><label for="u_codep">Produit </label></td>
              <td><select class="span8" name="id_produit">


    <%
                                                                    List<Produit> l;
                                                                        ProduitDao pdao = new ProduitDao();
                                                                        l = pdao.GetAll();
                                                                        int j = 0;

                                                                        while (j < l.size()) {
                                                                    %>
                                                                    <option value="<%=l.get(j).getId()%>">
                                                                        <%=l.get(j).getLibelle()%></option>
                                                                    <%
                                                                        j++;
                                                                        }
                                                                    %>
                                                        </select>
                                                        <td></td>
                                                        <td style="width: 35px;"><label for="u_quantite">
                                                                Quantité </label></td>
                                                        <td valign="top"><input type="text" id="u_quantite"
                                                            value="${nouvelleVente.quantité}" name="quantite"
                                                            class="span8" size="50" style="width: 50%;" /></td>
                                                        <td><i class="glyphicon glyphicon-plus"
                                                            onclick="javascript:newLine();"></i>
                                                        <td />
            =                                       </tr>
                                                </tbody>
                                            </table>

产品
定量
=                                       

只需了解如何做到这一点:使用getParameterValues()

例如->String[]produits=request.getParameterValues(“id_produit”)


感谢developerwk尝试帮助

展示您的servlet代码。