からサーブレットに選択し、チェックボックスを使用してテーブルの行の値を取得することです。..私のコードがどのようにここにJSP
<form action="order" method="post">
<table border="1" cellpadding="15" cellspacing="0">
<tr>
<th>Product</th>
<th>rate</th>
<th>Quantity</th>
<th>Manufacture Name</th>
<th>Select Items</th>
</tr>
<c:forEach var="entry" items="${productModel.entries}">
<tr>
<td>${entry.pname }</td>
<td>${entry.rate }</td>
<td>
<select name = "quantity" style="width: 90px; ">
<c:set var="total" value="${entry.currentstock}" />
<c:forEach begin="0" end="${total-1}" step="1" varStatus="loop">
<option>${loop.count}</option>
</c:forEach>
</select>
</td>
<td>${entry.manu_name }</td>
<td><input type="checkbox"></td>
</tr>
</c:forEach>
</table>
<input type="submit" name="order" value="Confirm Order">
</form>
私が選択したチェックボックスを取得し、サーブレットにこれらの値を取得したいです。
これはJavaの質問ですか、Javascriptの質問ですか?これらは同じものではありません。 –
@JoeCはJSPのように見えるので、Javaベースの技術であるJava Server Pagesです。私はここにJavascriptを見ない。 –
これはjspの質問です。jspはJavaScriptを使って行う方法ではないにしても、テーブルの行の値を取る方法はありません。 –