先通过表单向后台递交数据
<!DOCTYPE html>
<html>
<head>
<title>MyHtml.html</title>
<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<meta name="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<body>
<form action="AddUser" method="post">
姓名:<input type="text" name="username"><br>
密码:<input type="password" name="pass"><br/>
<input type="submit" value="提交">
</form>
</body>
</html>
数据递交到AddUser这个servlet之