<%@ page contentType="text/html;charset=GBK"%> <%@page import="java.util.*"%> <%@page import="java.io.*"%> <%@page import="java.net.*"%> <% //String filename = "4815yy3658.doc"; String filename = request.getParameter("filename"); BufferedInputStream bis = null; BufferedOutputStream bos = null; if (filename==null||"".equals(filename)) { out.println(""); return; } if (filename.indexOf("file_down.jsp") >= 0) { out.println(""); return; } /*�ж��ļ��Ƿ���ڣ���������ڣ���ʾ*/ filename = filename.replaceAll("../",""); String ls_file = request.getRealPath("/addcontent/webEditor/upload/files")+File.separator+filename; out.println("�ļ�·����" + ls_file); File lfile = new File(ls_file); if (!lfile.isFile()) { out.println(""); return; } response.reset(); response.setContentType("application/download"); response.setHeader("Content-disposition","attachment;filename="+filename); bis = new BufferedInputStream(new FileInputStream(ls_file)); bos = new BufferedOutputStream(response.getOutputStream()); byte[] buff=new byte[bis.available()]; int bytesRead; while(-1 != (bytesRead = bis.read(buff,0,buff.length))) { response.getOutputStream().write(buff,0,bytesRead); } bis.close(); bos.close(); %> 中文永久字幕在线播放亚洲自愈自愈产区亚洲永久精品免费www52zcm亚洲w码欧洲s码免费yw yw8117色哟哟视频大森有限公司aabb567永久免费链接链接