You are here:Home                 
               
  • 1
  •            
  • 2
  •            
  • 3
  •          
                                          <%           String missionId = "1";          String filename = ProgressControl.createPlanGanttChart(missionId,"AllProject",session,new PrintWriter(out));          String graphURL = request.getContextPath() + "/servlet/DisplayChart?filename=" + filename;      %>           " width="500" height="300" border="0" usemap="#<%=filename %>">                            HOME  |  ABOUT US  |  GALLERY  |  FAQ  |  SERVICES  |  CONTACT 
     Copyright 2009 Your Website | CSS Template by AngryBirds   

RealGantt.jsp

<%@ page language="java" import="java.util.*,java.io.*" pageEncoding="GBK"%> <%@ page import="com.angrybirds.DAO.ProgressControl"%> <%  String path = request.getContextPath();  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  %>      AngryBirds                                                                                      
                         
                                 You are here:Home                 
               
  • 1
  •            
  • 2
  •            
  • 3
  •          
                                                  <%           String missionId = "1";          String filename = ProgressControl.createRealGanttChart(missionId,"AllProject",session,new PrintWriter(out));          String graphURL = request.getContextPath() + "/servlet/DisplayChart?filename=" + filename;      %>           " width="500" height="300" border="0" usemap="#<%=filename %>">                            HOME  |  ABOUT US  |  GALLERY  |  FAQ  |  SERVICES  |  CONTACT 
     Copyright 2009 Your Website | CSS Template by AngryBirds   

此图为效果图:(由于我用的是DB2所以时间显示有点问题,如果要想甘特图有更好的显示效果可以参考API文档中相关类和方法

地址:http://www.jfree.org/jfreechart/api/javadoc/index.html)

如何通过JFreeChart实现在jsp页面画甘特图

看完了这篇文章,相信你对“如何通过JFreeChart实现在jsp页面画甘特图”有了一定的了解,如果想了解更多相关知识,欢迎关注创新互联行业资讯频道,感谢各位的阅读!


网站标题:如何通过JFreeChart实现在jsp页面画甘特图
分享网址:http://tjjierui.cn/article/ipcppc.html