Have chart appear in existing jsp page

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
dheath1174
Posts: 1
Joined: Thu Jul 07, 2005 10:38 pm

Have chart appear in existing jsp page

Post by dheath1174 » Thu Jul 07, 2005 10:41 pm

I'm using the demo pie chart within a jsp page. When calling the jsp page, it appears and the bar chart appears in another pop up window. Is there a way to have the chart appear within the jsp page that calls it?

Thanks in advance,
David

Rahul Gupta
Posts: 11
Joined: Wed Apr 20, 2005 1:55 pm
Location: India

Post by Rahul Gupta » Fri Jul 08, 2005 6:20 am

Save your chart to use ServletUtilities.saveChartAsXXX method and on the jsp page write the URL with src attribute of <img> tag.
Rahul K. Gupta

olli4u
Posts: 6
Joined: Fri Jun 10, 2005 4:04 pm

Servlet

Post by olli4u » Sat Jul 23, 2005 6:45 pm

Create a servlet,

write the chart in the output-Stream, so in your jsp, you will adress the servlet as a img-tag

Locked