srividya_sharma

Members
  • Content count

    943
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by srividya_sharma

  1. FusionCharts Exporter Jars For Different Java Versions

    Hi Aman, You could try using the servlet approach with this jar. Please read the instructions thoroughly and try to use it. Srividya
  2. JSP Page reload using JavaScript

    Hi Please use the following code in the body tag: <body onload="timer=setTimeout('reloadPage()',604800000)" > and the reloadPage as defined below: function reloadPage() { window.location='index.jsp'; } Srividya
  3. Fusion Charts intergration with JSF

    Hi Abhi, I have posted a small example application here: http://www.fusioncharts.com/forum/Topic17334-33-1.aspx Please see if that helps too. Srividya
  4. FusionCharts Exporter Jars For Different Java Versions

    Hi Chris, Here is the FusionCharts servlet exporter jar for jdk1.4.2 and above. I have corrected the jar. I have renamed the jar in the earlier post http://www.fusioncharts.com/forum/FindPost15615.aspx to reflect Java6. Please contact me in case of any issues. regards, Srividya Ask and get more out of FusionCharts everyday! fc_servlet_exporter_jdk1_4_2.zip
  5. Fusion Charts intergration with JSF

    Hi Abhi, Have an action class ( say, SalesAction ) which will contact database ( using DAO, DBConnection class ) and create the xml string. The action can then set the xml and any other value in request attribute. The result of this action should be defined in the struts.xml as the jsp page containing the chart. ( say, SalesChart.jsp ) In the SalesChart.jsp, you would use sx:include to include the FusionChartsRenderer.jsp in the following manner: <sx:include value="../Includes/FusionChartsRenderer.jsp"> <sx:param name="chartSWF" value="%{'FusionCharts/Pie3D.swf'}" /> <sx:param name="strURL" value="" /> <sx:param name="strXML" value="%{#request.xmlString}"/> <sx:param name="chartId" value="%{'FactorySum'}" /> <sx:param name="chartWidth" value="600" /> <sx:param name="chartHeight" value="300" /> <sx:param name="debugMode" value="false" /> <sx:param name="registerWithJS" value="false" /> </sx:include> In the above code, please substitute with the correct path. Hope this helps! Srividya
  6. FusionCharts Exporter Jars For Different Java Versions

    Hi Chris, Yes, it is for java 6. I will try to post a java5 version of the FusionCharts servlet jar in a few hours. regards, Srividya
  7. Fusion Charts intergration with JSF

    Hi Currently, we do not have a tag library that can be used with Struts 2. I will try to work on it soon. You could use sx:include to include the FusionChartsRenderer.jsp within the tabbed panel. Pass the xml obtained from the action as parameter to this jsp. Srividya
  8. FusionChart - integration with Struts 2

    Hi Abhi, Currently, we do not have a tag library that can be used with Struts 2. I will try to work on it soon. How are you going to create the tabs ? If you plan to use Rich Faces, then you could use the FusionCharts JSF tag library. If not, you can embed the charts in your page by including ( s:include ) FusionChartsRenderer.jsp and passing the required parameters. Hope this helps! Srividya
  9. JSP Page reload using JavaScript

    Hi Here is the code that you would need in index.jsp <% String costCenter = request.getParameter("costcenter"); //Check if the cookie is already present and use that value, if request parameter is not present. String cookieName = "costCenter"; Cookie cookies [] = request.getCookies (); Cookie centerCookie = null; if (cookies != null) { for (int i = 0; i < cookies.length; i++) { if (cookies [i].getName().equals (cookieName)) { centerCookie = cookies[i]; break; } } } if(costCenter == null) { if(centerCookie!=null) { costCenter = centerCookie.getValue(); System.out.println("centerCookie "+centerCookie.getValue()); } else { costCenter =""; } } if(!costCenter.equals("") || centerCookie==null) { //Set the cookie Cookie cookie = new Cookie("costCenter",costCenter); cookie.setMaxAge(60*60); response.addCookie(cookie); } %> <script> function reloadPage() { window.location='index.jsp'; } </script> <html> <body onload="setTimeout('reloadPage()',3000)" > This page refreshes itself without any dialog. <%= costCenter %> </body> </html> Please put a suitable timeout value. Hope this helps! Srividya
  10. Rails Demo not working

    Hi If you are using free version, you would use the <graph> tag. If you are using v3, then you would use <chart> tag. I hope I have understood your problem correctly. if not, please clarify. Srividya
  11. Ruby Script for Image Saving

    Hi The latest version of FusionCharts provides the complete ruby on rails framework for exporting the chart as image. Please use that. regards, Srividya
  12. JSP Page reload using JavaScript

    Hi Can you store the value in session/cookie? regards Srividya
  13. JSP Page reload using JavaScript

    Hi The Dialog is appearing because of this parameter. Can you avoid the use of this parameter, since you are reloading the page ? or maybe store this value somewhere. regards, Srividya
  14. JSP Page reload using JavaScript

    Hi Are there any parameters received in the request to this JSP page? Srividya
  15. FusionChartsHelper.class is not compatable with JDK 1.4

    Hi Rama, Glad to help! Srividya Ask and get more out of FusionCharts everyday!
  16. FusionChartsHelper.class is not compatable with JDK 1.4

    Hi Rama, Here are the requested FusionCharts Helper Class files compiled with jdk1.4.2. Hope this helps! regards, Srividya FusionChartsJSPv3_1Classes_1_4.zip
  17. How to configure the fusioncharts_export.properties file

    Hi Since images folder is in the root folder, the SAVEPATH should be, SAVEPATH=./images/ Hope this helps! If not, please post the xml as well. Good Luck Exploring the New Export Feature! regards, Srividya
  18. Save as JPEG/PDF/PNG not working

    Hi Aman, The application is complex and I do not seem to find the dependency jars in the package. It would be difficult for me to replicate this application here. If possible, please post a link to a live site where I can see it working. Or post the deployable war in some ftp server. regards, Srividya
  19. Save as JPEG/PDF/PNG not working

    Hi Aman, I will take a look at the application tomorrow. Srividya
  20. save as PDF and image on jsp

    Hi Ravi, Here is a sample web application to test the export feature. Just place the swf and js files in FusionCharts folder. First see if this works, then we can proceed from there. Srividya FusionChartsExportApp.zip
  21. save as PDF and image on jsp

    Hi Aman, Ravi This should be a path issue only. There are only 3 important path values used for export. 1. RESOURCEPATH in fusioncharts_export.properties. ( relative to web application root ) 2. SAVEPATH in fusioncharts_export.properties. ( in case of server side "save" ) 3. exportHandler attribute in xml. Please check all three. I will upload a sample web app in my next post. Ravi, you can test and see if that works.
  22. save as PDF and image on jsp

    Hi Please upload the webapp. Or if you have a live site, please provide the link. I can take a look at it. Srividya
  23. Hi Aman, I appologize for the delayed response ( I was out of office ). Can you email me the required jars for the web application, the latest java classes and jsps in WEB-INF folder? Also tell me the jsp, with which you are testing. I can test it here, modify and send. Srividya Here to solve your FusionCharts issue!
  24. Error while creating a DrillDown chart

    Hi Deepti The code in the samples has this line of import. <%@ page import ="com.fusioncharts.FusionChartsHelper"%> and the corresponding classes are present in WEB-INF/classes folder of the web application. Please verify that you have the import statement and the necessary class in your web application. Hope this helps! Srividya
  25. Hi Aman, Please give me the log or console messages. Then we can know how far the export has proceeded or what error it is throwing. Srividya