servlet服务器端验证(10)
来源:未知 责任编辑:责任编辑 发表时间:2014-02-02 17:48 点击:次
request.setAttribute("password", password1);
request.getRequestDispatcher("Success.jsp").forward(request, response);
} else {
request.setAttribute("error", l);
request.getRequestDispatcher("Error.jsp").forward(request, response);
}
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
System.out.println("调用doPost");
doGet(request, response);
}
}
摘自 Mars学IT
相关新闻>>
- 发表评论
-
- 最新评论 更多>>