From: Nathaniel G. A. <nat...@ya...> - 2004-11-05 01:25:34
|
The cost of rendering a chart is relatively small, so unless you have a large load, caching the image provides little benefit and adds complexity. However, if your data changes infrequently and your server is under load, caching makes sense. The same is true of using any type of caching. For the majority of applications, writing the chart to a file is uneeded. Some people think they HAVE to write the chart to a file to use it in an img tag. --- Chris Ward <cw...@go...> wrote: > On Thursday 04 November 2004 03:52 pm, Nathaniel G. Auvil wrote: > > something is getting written to the reponse before you encode the chart. > > Check your code and if you are not doing it then Struts is. If Struts is, > > you could always add a Servlet which renders the Chart. > > > > I would not write the image to a file, as the performance of that would not > > be good. > > I am not sure what you mean 'as the performance of that would not be good'. > The way I use it, it is better. Instead of creating charts with every > request, I only create a chart when data has changed, and save it as a name > my html page will know. This way, I only look up an image without needing to > create the image every time. > > Of course, the servlet accessed by an image tag would be the best way to > access a chart from struts if you needed to render the chart with every > access, as you would not need two file operations every time (write, then > read) > > Chris > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com |