");Р out.println(" ");Р out.print(" This is ");Р out.print(this.getClass());Р out.println(", using the GET method");Р out.println(" ");Р" /> A Servlet");Р out.println(" ");Р out.print(" This is ");Р out.print(this.getClass());Р out.println(", using the GET method");Р out.println(" ");Р" />

全文预览

积分管理信息系统--软件工程考查作业

上传者:火锅鸡 |  格式:doc  |  页数:52 |  大小:1027KB

文档介绍
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"));

收藏

分享

举报
下载此文档