hi i am currently using the JFreeChart API and the existing code is something like this
Code:
Create the chart dataset from one servlet that is submitted to by the form. the control comes back and img tag calls the chart servlet from the "src" attribute.
now this servlet gets a chart object and writes it to the output stream
JFreeChart chart = WNChartFactory.createPieChart ("PT_TEMPLATE2", objDefaultPieDataset);
resp.setContentType ("image/png");
ChartUtilities.writeChartAsPNG (out, chart, 230, 200);
The factory is just to give an object. i would like to simplify this process by calling only one servlet.
secondly i am looking at a possibity like i add something to the buffered output stream and reading it on my jsp in th form of bytes and displaying. i am not sure if this is possible and i am not getting any idea on this
plz help me
thanks