Servlet中使用PrintWriter out=response.getWriter()out.println("内容")jsp页面中使用out.println("内容")
Console con = System.console();PrintWriter out = .....if(con != null){ out.println(con.readLine());}
使用out.print()