jCharts in Struts

Victor Nammour <[email protected]> Thu, 04 Nov 2004 15:25:20 -0500
Newsgroups gmane.comp.krysalis.jcharts.user
Organization OIT
Message-ID <[email protected]>
Hi,
Thank you for your outstanding software.
I am using struts in a web application. As you are familiar, struts uses 
a single action servlet which the developer views as a black box.
My question: When I encode my chart in an action class, and then forward 
to a jsp to display that chart, I see the chart but when I print the 
stacktrace I get the message:
java.lang.IllegalStateException: Cannot forward after response has been 
committed

I encode by saying.
JPEGEncoder13.encode( axisChart, 1.0f, response.getOutputStream());
in my action class.
Is there a way to use another output stream and then display this output 
stream in a jsp page? Or do I have to extend the action servlet?

Thank you .

Victor Nammour
Software Developer
Office of Information Technology
Trenton, NJ




-------------------------------------------------------
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=5588&alloc_id=12065&op=click