如何将web输入框内输入的值保存到变量中


<html>
  <head>


    <title>My JSP 'ManagerLogin.jsp' starting page</title>


  </head>

  <body>
    <center>
    <font size="5">管理员登录!</font> <br>
    <!-- <form action="demo_form.asp"> -->
    <form action="Manager.jsp">
   用户名: <input type="text" name="user"><br>
   密码: <input type="text" name="pass"><br>
  <input type="submit" value="登录">
</form>
    </center>

  </body>
</html>

如何修改才能用string类型的变量保存输入的username和password?

你是说在页面中进行保存,下次进入时自动填入信息? 可以使用Cookie