protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
request.setCharacterEncoding("UTF-8");
request.setAttribute("username", "dhweicheng");
request.setAttribute("password", "123456");
request.getRequestDispatcher("/my.jsp").forward(request, response);
}
|