servlet基础(4)
来源:未知 责任编辑:责任编辑 发表时间:2014-02-02 17:48 点击:次
PrintWriter out = response.getWriter();
System.out.println("in Get");
out.println("<HTML>");
out.println(" <HEAD></HEAD>");
out.println(" <BODY>");
out.println("从jsp页面,获取信息的示例");
out.println(request.getParameter("text"));
out.println(" </BODY>");
out.println("</HTML>");
out.flush();
out.close();
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
System.out.println("in Post");
doGet(request,response);
}
}
摘自 Mars学IT
相关新闻>>
- 发表评论
-
- 最新评论 更多>>