FusionCharts Forum: FusionCharts export with spring MVC - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

FusionCharts export with spring MVC

#1 User is offline   sena 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 29-July 10

Posted 29 July 2010 - 09:51 AM

Hi everybody,



I'm testing Fusioncharts for a while. I've done a bunch of test and i like it very much. Before recommend it to my company and buy the license, i tried to integrate it with java spring MVC CDN i made.



It's working well ... but i 've 1 problem. I want to save on server my charts as jpg. My server not allowed PHP so I have to made in pure java/JSP. A controller will ask for this image and will build a full document.



I include

[quote]

fusionchartsexporter_j2sdk1.4.2

fc_servlet_exporter_java6

[/quote]



my web.xml has







FCExporter

FCExporter

com.fusioncharts.exporter.servlet.FCExporter





FCExporter

/FCExporter







and a JS that has

[quote]

var chart = getChartFromId("myChartId");

chart.exportChart( {exportFormat: 'JPG'} );

[/quote]



and velocity template is :

[quote]




exportEnabled='1' exportAtClient='0' exportAction='download' exportFileName='ExportedChart' exportHandler='FCExporter' >



#foreach( $data in $datas )



#end



[/quote]





I use my computer has test server. so i try to save to "C:tmp" ... nothing in. When i click on export button, i see the progress bar and afterward i get a beautifull blank page with nothing



[/quote]



Thanks a lot to take time to help me
0

Other Replies To This Topic

#2 User is offline   sena 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 29-July 10

Posted 30 July 2010 - 04:31 AM

Hey everybody,



I worked all the night and i have finally something working. I can save charts through Spring MVC and server-side.



My last issue is that it asks me where i want ton save the pics. I was thinking that it was defined in ".properties" . So the browser intercept the download?



I just want the charts to be saved on http://myServer:8080/myProject/tmp and not on client computer



:s



Maybe somebody could help me



thanks
0

Other Replies To This Topic

#3 User is offline   sena 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 29-July 10

Posted 30 July 2010 - 11:45 AM

Hi everybody,I made it worked!



I found that i had to change some stuffs in FCExport_IMG.jsp.



My last question is :



We are going to buy the license, we wounder to know if the code of the fcexport.jar is included ! We want to build our own controler but we only have access to the method name for the moment.



Best regards,

Sena
0

Other Replies To This Topic

#4 User is offline   srividya_sharma 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 943
  • Joined: 01-October 07

Posted 01 August 2010 - 11:45 AM

Hi,

Happy to know that you got it working.

Yes, you can get the source code for the exporter, upon request. :)

Srividya

regards,
Srividya Sharma
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic