
文件操作
文章平均质量分 80
Miya_HQ
生活就是这样,旧的烦恼去了就会来新的。
展开
-
jquery,struts2文件上传
jsphttp://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>http://jsptags.com/tags/navigation/pager"%>String path = request.getContextPath();request.setAttribute("rootPath",path);String b原创 2011-12-16 17:24:28 · 701 阅读 · 0 评论 -
下载文件
HttpServletRequest request = ServletActionContext.getRequest(); HttpServletResponse response = ServletActionContext.getResponse(); HttpSession session =ServletActionContext.getRequest().getSessi原创 2011-12-09 14:55:01 · 270 阅读 · 0 评论 -
如何将form里面的数据导出到excel中
(1)在service中定义格式 表单的内容 public void writeToExcel(List logList, String filePath)throws IOException, Exception, WriteException {File file = new File(filePath);file.createNewFile();WritableWorkb原创 2012-07-10 11:23:42 · 1103 阅读 · 0 评论