Grab/Access generated chart/image URL

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Guest

Grab/Access generated chart/image URL

Post by Guest » Thu Feb 16, 2006 5:06 pm

I have looked through the API and am unable to find a method to obtain the PNG/JPEG/SVG url once the chart is generated? Any ideas?

Also how do I suppress the jsessioid from the URL I thought there was a method forceSessionID that I am not able to find anymore.

Thanks.

dougclayton
Posts: 6
Joined: Tue Feb 14, 2006 10:56 pm

Post by dougclayton » Thu Feb 16, 2006 6:46 pm

JFreeChart has no notion of a URL for the image--you configure that in your servlet configuration when you write a servlet that streams the image to the client. JFreeChart just produces the image and can write it as a PNG, etc, to an output stream, which you can get for the HttpServletResponse.

Did that help?

Guest

Post by Guest » Fri Feb 17, 2006 8:42 pm

http://server/cewolf/cewolf;jsessionid= ... ehack=.png

cewolf stored the ChartImage in the session which can be accessed by using session attributes. How can I get the chart id? -2111368916 in this case

Doug Clayton

Post by Doug Clayton » Fri Feb 17, 2006 9:22 pm

Oh, you didn't mention you were using cewolf. I don't know--when I looked at cewolf two years ago, I decided not to use it because it isn't updated enough. It hasn't been updated then, so I don't know how you can get the answer you need.

Locked