aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes JFreeChart need help writing to ServletOutputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JFreeChart need help writing to ServletOutputStream" Watch "JFreeChart need help writing to ServletOutputStream" New topic
Author

JFreeChart need help writing to ServletOutputStream

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Hi guys, I don't know what's wrong with my code. I'm suspecting that the chart is not being created at all... No exceptions are thrown, no error messages whatsoever... I'm trying to create a Chart image(jpeg) using JFreeChart on my servlet and call the servlet through JSP. However, I only get an error icon(image) and it seems that the chart is not being generated at all... Pleas e help... Here's my code...





and here's how I call it in JSP

<img src="${pageContext.request.contextPath}/generateverticalchart.do">

Thank you. I hope I provided enough information to get answered. The Servlet is correctly configured in web.xml.


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFreeChart need help writing to ServletOutputStream