Re: jCharts in Struts
Chris Ward <[email protected]> Thu, 4 Nov 2004 16:32:13 -0600
| Newsgroups | gmane.comp.krysalis.jcharts.user |
|---|---|
| Organization | Integral Business Solutions |
| Message-ID | <[email protected]> |
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