<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>this is test</title>
</head>
<body>
<form action="http://localhost:8090/Moments/HelloForm" method="GET">
mingzi:<input type="text" name="first_name">
<br />
xinshi:<input type="text" name="last_name" />
<input type="submit" value="tijiao" />
</form>
</body>
</html>
相当于:
http://localhost:8090/Moments/HelloForm?first_name=ZARA&last_name=ALI
http://www.runoob.com/servlet/servlet-form-data.html