本文最后更新于:4 个月前
在 《HTTP案例学习:用户登录》 中提及到html中form表单的action路径的写法
是
虚拟目录+Servlet的资源路径
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>用户登录</title>
</head>
<body>
<form action="/day14_test/loginServlet" method="post">
用户名:<input type="text" name="username"> <br>
密码:<input type="password" name="password"><br>
<input type="submit" value="登录">
</form>
</body>
</html>
先记住,日后还会涉及到的。
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!