摘要: 获取项目路径:String url= ServletActionContext.getRequest().getRealPath("/upload"); 一.直接生成的图片输出到jsp页面 1.jsp页面[html] view plain copy print?<%@ page&nb 阅读全文
posted @ 2017-08-21 16:07 星朝 阅读(531) 评论(0) 推荐(0)
摘要: 前提:导入需要的2个jar文件,jcommon 版本号.jar,jfreechart 版本号.jar。可以去官网下载:http://sourceforge.net/projects/jfreechart/files/ 注意:下载的Jfreechart版本不要太高,新版本对中文的显示会出问题,我自己后 阅读全文
posted @ 2017-08-21 15:18 星朝 阅读(456) 评论(0) 推荐(0)
摘要: struts2整合JFreechart 饼图、折线图、柱形图 上效果图: 当然可以将数据导出图片格式存储。具体下的链接里的文件有保存成图片的操作。 因为是strust2整合JFreechart,所以strust2框架一定得搭建好。 1.导入三个包:http://download.csdn.net/d 阅读全文
posted @ 2017-08-21 12:07 星朝 阅读(437) 评论(0) 推荐(0)
摘要: Createjfreechartbar 代码  package com.potevio.rnd;    import java.io.File;  import java.io.FileNotFoun 阅读全文
posted @ 2017-08-21 12:04 星朝 阅读(2733) 评论(0) 推荐(1)