2013年7月28日
摘要: 1 public HttpServletResponse download(String path, HttpServletResponse response) { 2 try { 3 // path是指欲下载的文件的路径。 4 File file = new File(path); 5 // 取得文件名。 6 String filename = file.getName(); 7 // 取得文件的后缀名。 8 String ext ... 阅读全文
posted @ 2013-07-28 20:08 y_always 阅读(241) 评论(0) 推荐(0) 编辑