私はオンライン予約システムアプリケーションを作成しています。ユーザーはチェックボックスを使用してアクティビティを選択できます。その後、彼らは予約に提出することができます。私はチェックボックスの場所に問題があり、私は送信ボタンでこれらのチェックされた予約を提出する方法を知らない。jspのcheckoxの設定場所
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import ="java.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Book Ticket</title>
</head>
<body>
<center>
<table border="1" width="30%" height="30%">
<tr><th><font color='#D18603'>Activity ID.</font></th>
<th><font color='#D18603'>Type</font></th>
<th><font color='#D18603'>Description</font></th>
<th><font color='#D18603'>City</font></th>
<th><font color='#D18603'>Location</font></th>
<th><font color='#D18603'>Date</font></th>
<th><font color='#D18603'>Price</font></th>
<th><font color='#D18603'>Buy</font></th>
</tr>
<td><b><font color='#663300'><input type="checkbox" name="ticket" value=""/></font></td></b>
<%
Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance();
Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/users", "users", "123");
Statement st = con.createStatement();
ResultSet rs;
rs = st.executeQuery("select * from activities");
while (rs.next()) {
String activityid1 = rs.getString("id");
String type1 = rs.getString("type");
String description1 = rs.getString("description");
String city1 = rs.getString("city");
String location1 = rs.getString("location");
String date1 = rs.getString("date");
String price1 = rs.getString("price");
out.println("<tr>");
out.println("<td>" + activityid1 + "</td>");
out.println("<td>" + type1 + "</td>");
out.println("<td>" + description1 + "</td>");
out.println("<td>" + city1 + "</td>");
out.println("<td>" + location1 + "</td>");
out.println("<td>" + date1 + "</td>");
out.println("<td>" + price1 + "</td>");
out.println("</tr>");
}
%>
</center>
</table></body>
<tr>
<td colspan="10"><input type="submit" value="Submit" /></td>
<td><input type="reset" value="Reset" /></td>
</tr>
<br><br><a href='logout.jsp'>Log out</a>
</html>
チェックボックスの位置はどういう意味ですか? – PacMan