From: Chris W. <cw...@go...> - 2004-11-04 22:32:30
|
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 |