JavaWeb实验五(三)通过Servlet处理表单请求
发布时间
阅读量:
阅读量

1.创建index.jsp页面。新建表单
注意: 在填写 action 时应选择 input,这一点在后续配置 web.xml 文件时需特别留意。提交方式应设置为 postt
<body>
<form action="input" method = "post">
用户名:<input type = "text" name = "username" >
</br>
密码:<input type = "password" name = "mima">
<input type = "submit" value = "提交">
</form>
</body>
2.新建类InputServlet在nuc.ss.test下,和实验一步骤一样,不多重复
对doGet方法进行重新编写
@Override
pr
全部评论 (0)
还没有任何评论哟~
