You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Kate Fox <ka...@fraudwall.net> on 2007/11/26 18:20:33 UTC
JFreeChart + Tiles
Has anyone tried to use JFreeChart and Tiles. I can't seem to get it
working. Any help would be greatly appreciated!
Kate
Re: JFreeChart + Tiles
Posted by Ray Clough <rc...@kamakuraco.com>.
The problem, as I see it, is not so much JFreeChart and Tiles, but
JFreeChart and Jsp. A JFreeChart rendered on a Jsp page is an image, so
the problem is getting that image onto the Jsp page. Then use that Jsp
as a Tile. Tiles has nothing to do JFreeChart. I have used two methods
to get a JFreeChart onto a Jsp page: (1) create a Servlet to serve up
the image files (maybe 25 lines of code is all it takes). Map it to
something like /charts/* and use that in a JSTL tag to give you the
chart; (2) use CeWolf, which is a very nifty tag library (and other
stuff too) which is made to work with JFreeChart. CeWolf also gives you
an image map so you get tool tips on the chart.
Use either method to put the chart on your Jsp, then include that Jsp as
a Tile, and abracadabara! presto! voila! Piece-o-cake!
- Ray Clough
Kate Fox wrote:
> Has anyone tried to use JFreeChart and Tiles. I can't seem to get it
> working. Any help would be greatly appreciated!
>
> Kate
>
>
>
Re: JFreeChart + Tiles
Posted by Antonio Petrelli <an...@gmail.com>.
2007/11/26, Kate Fox <ka...@fraudwall.net>:
> Has anyone tried to use JFreeChart and Tiles. I can't seem to get it
> working. Any help would be greatly appreciated!
Please provide more details: how do you integrate them?
Antonio