直接在Servlet中获取就行String username = request.getParameter("username");//这里面的参数要跟你页面上文本输入框的name相同String password = request.getParameter("password");//这里同上
(String)request.getParameter("username")参考