摘要: public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // 获取下载文件名称 String filename = request.getParameter("filename"); ... 阅读全文
posted @ 2018-07-06 11:25 淅沥沥丶下雨 阅读(295) 评论(0) 推荐(0) 编辑
摘要: public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // 使用response获取字节输出流 ServletOutputStream out = response.getOutputStr... 阅读全文
posted @ 2018-07-06 11:23 淅沥沥丶下雨 阅读(292) 评论(0) 推荐(0) 编辑
摘要: //重定向 public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // //1.设置状态码 // response.setStatus(302); // //2.设置响应头... 阅读全文
posted @ 2018-07-06 11:21 淅沥沥丶下雨 阅读(97) 评论(0) 推荐(0) 编辑