File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFreeChart need help writing to ServletOutputStream

 
Timothy Sam
Ranch Hand
Posts: 751
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic