Meaningless Drivel is fun!*
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
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: 41112
    
  45
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 - my free Android networking tools app
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
draw bar chart in java or servlet or jsp
Applet including another applet
Showing image from servlet
Using XSL to draw a pie chart
Image problem