<body> 你好,lucky! </body>
public class mailServlet extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("utf-8"); String name = request.getParameter("userid"); String password = request.getParameter("passwd"); if(name.equals("lucky")&&password.equals("123456")){ request.getRequestDispatcher("/welcome.jsp").forward(request, response); } } }