index.html 585 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. </head>
  7. <body>
  8. <!--login是一个servlet-->
  9. <h2>GET提交</h2>
  10. <form action="login" method="get">
  11. 用户名:
  12. <input type="text" name="username"><br/>
  13. 密码:
  14. <input type="password" name="pwd"><br/>
  15. <input type="submit" value="登录">
  16. </form>
  17. <hr>
  18. <h2>POST提交</h2>
  19. <form action="login" method="post">
  20. 用户名:
  21. <input type="text" name="username"><br/>
  22. 密码:
  23. <input type="password" name="password"><br/>
  24. <input type="submit" value="登录">
  25. </form>
  26. </body>
  27. </html>