1. Get the value of the radio button from the java database and display it in the radio button of the modified information
<input type="radio" name="sex" value="男" <c:if test="${i.sex=='男'}">checked="checked"</c:if>>男 <input type="radio" name="sex" value="女" <c:if test="${i.sex=='女'}">checked="checked"</c:if>>女2. All the information in the database is displayed on the interface. First, through the while loop, get the value in the database, put it into a collection, assign the value in the collection list to employeelist, and pass it to the front desk, use forEach to display the database All the values in the primary key
<c:forEach items="${employeelist}" var="i" varStatus="status"> <TR> <TD>${status.index+1}</TD> <TD>${i.no}</TD> <TD>${i.name}</TD> <TD>${i.sex}</TD> <TD>${i.birthday}</TD> <TD>${i.duty}</TD> <TD>${i.address}</TD> <TD>${i.number}</TD> </TR> </c:forEach>3. Data type conversion, convert data type in Servlet file
employee.setNo(Integer.valueOf(request.getParameter("no"))); employee.setBirthday(Date.valueOf(request.getParameter("birth")));Get value in Dao file
u.setId(rs.getInt(1)); u.setBirthday(rs.getDate(5));