out.println(" <HEAD><TITLE>A Servlet</TITLE></HEAD>");Р out.println(" <BODY>");Р out.print(" This is ");Р out.print(this.getClass());Р out.println(", using the GET method");Р out.println(" </BODY>");Р out.println("</HTML>");Р out.flush();Р out.close();Р?}Р?/**Р * The doPost method of the servlet. <br>Р *Р * This method is called when a form has its tag value method equals to post.Р * Р * @param request the request send by the client to the serverР * @param response the response send by the server to the clientР * @throws ServletException if an error occurredР * @throws IOException if an error occurredР */Р?public void doPost(HttpServletRequest request, HttpServletResponse response)Р throws ServletException, IOException {Р String name=StrConvert.tochinese(request.getParameter("textfield"));