用servlet打内容到网页上 关键代码 response.setContentType("text/html;charset=UTF-8"); PrintWriter out=response.getWriter(); 打印代码 out.println("<html>");