File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes jfreechart not work when used from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "jfreechart not work when used from servlet" Watch "jfreechart not work when used from servlet" New topic
Author

jfreechart not work when used from servlet

Leandro Coutinho
Ranch Hand

Joined: Mar 04, 2009
Posts: 417
Hi!

I have a class that has a main method and when I run it, it creates the pie chart.
I have a servlet that calls the main method. It doesn't show any errors and finishes normally, but it doesn't create the pie chart.

I refreshed the project folder, the parent project folder, searched it, and nothing...

Help me!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
You seem to assume that web apps have a default directory where files you create will end up in, but they don't. You must use absolute paths in web apps.


Ping & DNS - updated with new look and Ping home screen widget
Leandro Coutinho
Ranch Hand

Joined: Mar 04, 2009
Posts: 417
Ulf Dittmer wrote:You seem to assume that web apps have a default directory where files you create will end up in, but they don't. You must use absolute paths in web apps.

Yes, you're right. Thank you Ulf! =)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jfreechart not work when used from servlet
 
Similar Threads
Image problem
Showing image from servlet
draw bar chart in java or servlet or jsp
Applet including another applet
Using XSL to draw a pie chart