一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

使用java导出fusioncharts 图片2种方式

时间:2014-05-28 编辑:简简单单 来源:一聚教程网

fusioncharts 图片2种方式导出:

百度网盘下载demo:

链接:pan.baidu.com/s/1jGGAOrO   密码:7a6y

提供服务器保存 和 客户端保存

test.jsp 和 test.html是客户端保存

index.jsp是服务器端保存(请参见fusioncharts_export.properties)

请在服务端运行程序!!切记

使用java导出fusioncharts 图片2种方式

使用java导出fusioncharts 图片2种方式

代码如下图所示

 代码如下 复制代码

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath",basePath);
%>



   


The chart will appear within this DIV. This text will be replaced by the chart.



FusionCharts Export Handler Component



 

代码二

 

 代码如下 复制代码
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath",basePath);
%>


 
   
    
    My JSP 'index.jsp' starting page
   
   
       
    words" content="keyword1,keyword2,keyword3">
   
   
   
   
   
 
 
        
    
    
 
 

热门栏目