ServletResponse
方法:
getWriter():返回PrintWriter 对象,调用该对象的print() 方法,将把print()中的参数直接打印到浏览器上。
PrintWriter out= response.getWriter();
out.println(" ");
setContentType():设置响应的内容类型
response.setContentType("application/msword"); //返回word文档
sendRedirect(String location):请求的重定向,(此方法为HttpServletResponse中定义)