Search found 2 matches

by jk2004
Wed Mar 31, 2004 7:29 pm
Forum: JFreeChart
Topic: Handling output streams-Represent chart but NOT in an image
Replies: 10
Views: 12541

IllegalStateException

IllegalStateException usually occurs when you have redirected your response to a different page and call response.getOutputStream() from the original servlet.
by jk2004
Tue Mar 30, 2004 5:43 pm
Forum: JFreeChart
Topic: Handling output streams-Represent chart but NOT in an image
Replies: 10
Views: 12541

The way I do in my application is as follows: JSP ---- < img src="/servlet/ GraphServlet "> GraphServlet ---------------- ChartUtilities.writeChartAsJPEG( response.getOutputStream() , 0.75f, chart, 600, 300, null/*chartRenderingInfo*/); It works very good. Thanks to JFree.org I have multiple grpahs ...