JFreeChartServletDemo

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Seung

JFreeChartServletDemo

Post by Seung » Thu Mar 21, 2002 8:52 pm

Hi,

I am trying to run the JFreeChartServletDemo.
It's not easy to me . Would you give some tips?
Actually I set like this way.

/servlet-demo.html
/WEB-INF/web.xml
/WEB-INF/lib/jcommon-0.5.6.jar
/WEB-INF/lib/jfreechart-0.7.4.jar

and I change form like this:
<form action="http://127.0.0.1:8100/jfreechart/servlet/
JFreechartServletDemo">

Do I missing sothing??

Seung

Navin Pathuru

Re: JFreeChartServletDemo

Post by Navin Pathuru » Fri Mar 22, 2002 1:09 am

Hi Seung,
I am using Apache Tomcat 4 and
This is how i got it working...
Step 1. Compile the servlet in JBuilder or any IDE.
Step 2. Copy the class file, JFreeChartServletDemo.class and paste it in the directory .../Root/WEB-INF/classes/
Step 3. Open Internet Explorer, make sure the server is running, then type in the URL:
http://localhost/servlet/com.jrefinery. ... ervletDemo

You should be able to see the chart.

If you get a problem, try to paste all the class files of the project like this in the WEB-INF/classes/com/jrefinery/chart/demo.

Regards,
Navin Pathuru

Seung

Re: JFreeChartServletDemo

Post by Seung » Fri Mar 22, 2002 7:27 pm

Hi Navin,

Thanks. It's working great.
I compiled all java files in com.jrefinery.chart.demo and put them to "\WEB_INF\classes\com\jrefinery\chart\demo\".
So here is the setting for somebody like me.

Tomcat 4.0
ROOT\servlet-demo.html
ROOT\WEB-INF\web.xml
ROOT\WEB-INF\classes\com\jrefinery\chart\demo\"all class files"
ROOT\WEB-INF\lib\jcommon-0.5.6.jar
ROOT\WEB-INF\lib\jfreechart-0.7.4.jar

And change the line in servlet-demo.html from
action="http://nomad:8080/jfreechart/servlet/JF ... ervletDemo" to action="../servlet/JFreeChartServletDemo".

Seung:)

Locked