获取参数

login.html

<form action="login.jsp" method="get">
<input type="text" name="username" value="username">
<input type="text" name="passwd" value="password">
<input type="submit" value="提交">
</form>

login.jsp

<!DOCTYPE html>
<html>
<head>
	<title>login.jsp</title>
</head>
<body>
<h1>提交</h1>
username:
<%= getParameter("username")%><br>
password:
<%= getParameter("passwd")%><br>
</body>
</html>

内置对象