From: Rod M. <rma...@ve...> - 2004-11-05 17:12:00
|
Given your analysis it makes no sense whatsoever for you to use servlets. In my case we have one or two people looking at realtime graphs so the servlet might have been ideal. The problem is it needs to be embedded in the page with other HTML items. Anybody know if the servlet output be the target of an image tag? If not we will have to save the realtime image to a file and create a dynamic reference to it. That leaves the problem of writing file resources from a bundled up WAR or EAR file.=20 -----Original Message----- From: Chris Ward [mailto:cw...@go...]=20 Sent: Friday, November 05, 2004 1:11 PM To: jch...@li... Subject: Re: [jCharts-users] jCharts in Struts On Friday 05 November 2004 04:09 am, Chris McKay wrote: > Plus you need to write a file collector as well to tidy up the cache=20 > directory ... > > C In my case, I don't need to delete a 'cache' folder, as it never grows beyond=20 a set size of images. The image names are reused each time the graphs are=20 created, so that static names can be used on web pages. It may not be the case for most people, but I have to generate my data from a=20 database for each chart, and I have from 2 to 8 charts on a page, with my=20 final result being a PDF of 30-40 pages. In my case, I think the cost of generating the graphs is high, with the individual graphs changing=20 infrequently. I have used the servlet in an img tag before, and it appears that most people=20 here like that method and recomend it first, but I have always liked the idea=20 of reducing server load to the web server. If you have highly dynamic graphs,=20 I guess you have no choice. I have also contemplated moveing the servlet graph generators to a seperate 'image' server, but decided that still would=20 be best with more dynamic charts than I have. Mine only change when a user=20 changes input data, not with an automatic process such as recording=20 temperature data. All things said, if the servlet in an image tag is the preferred method of=20 this list, I don't need to confuse new people by suggesting saving to a file=20 again, but I did put thought into it before making my decision. 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=3D5588&alloc_id=3D12065&op=3Dclick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |