前端通过form,提交数据到后端,后端通过request对象的getParameter方法,可以直接获取value。
如果要返回数据,可以设置在response里面。
一,html注册表单
<!DOCTYPE html>
<html>
<head>
<title>Login.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="/M1/demo1" method="post">
用户名<input type="text" name="user"><br>
密码:<input type="password" name="pass"><br>
性别:<input type="radio&#