update.jsp 692 B

1234567891011121314151617181920212223
  1. <%--
  2. Created by IntelliJ IDEA.
  3. User: x'b'w
  4. Date: 2021/5/22
  5. Time: 23:58
  6. To change this template use File | Settings | File Templates.
  7. --%>
  8. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  9. <%--修改--%>
  10. <html>
  11. <head>
  12. <title>Title</title>
  13. </head>
  14. <body>
  15. <form action="student" method="post" >
  16. 编号:<input type="text" name="num" value="${student.num}" readonly>
  17. 姓名:<input type="text" name="name" value="${student.name}">
  18. <input type="hidden" name="method" value="update"/>
  19. <%-- 相当于<a href="student?method=findBynum&num=${student.num}">--%>
  20. <input type="submit" value="修改">
  21. </form>
  22. </body>
  23. </html>