<form action="login" method="post"> <p> 用户名: <input type="text" id="loginName"/> <br/></p>
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=gbk");
PrintWriter out = response.getWriter();
String name = request.getParameter("loginName");
为什么loginName 输出是为空的
smlrole
qq_隔壁老王_23
Caballarii
相关分类