Search found 11 matches

by terrie
Thu Jul 22, 2004 4:44 am
Forum: JFreeChart
Topic: using JFreeChart with JSP
Replies: 85
Views: 486586

By adding << import com.keypoint.PngEncoder; import java.awt.image.*; >> remain two errors --------------------Configuration: JDK version <Default>-------------------- C:\tomcat\webapps\PSA\WEB-INF\classes\ChartViewer.java:40: cannot resolve symbol symbol : variable session location: class ChartView...
by terrie
Thu Jul 22, 2004 4:42 am
Forum: JFreeChart
Topic: which package i hvn't include?THX A LOT
Replies: 2
Views: 3705

thanks ! By adding << import com.keypoint.PngEncoder; import java.awt.image.*; >> remain two errors --------------------Configuration: JDK version <Default>-------------------- C:\tomcat\webapps\PSA\WEB-INF\classes\ChartViewer.java:40: cannot resolve symbol symbol : variable session location: class ...
by terrie
Thu Jul 22, 2004 4:16 am
Forum: JFreeChart
Topic: using JFreeChart with JSP
Replies: 85
Views: 486586

import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Writer; import java.util.Enumeration; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; im...
by terrie
Thu Jul 22, 2004 4:14 am
Forum: JFreeChart
Topic: which package i hvn't include?THX A LOT
Replies: 2
Views: 3705

which package i hvn't include?THX A LOT

import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Writer; import java.util.Enumeration; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; im...
by terrie
Wed Jul 21, 2004 9:12 am
Forum: JFreeChart
Topic: using JFreeChart with JSP
Replies: 85
Views: 486586

one strange question u hve reply for my post this one: after a few minute, i refresh the browser and the ur reply post can't be found now.... >> THANKS A LOT Where should I put the following code?where should I place after complie the following class?Wht the name of the class should be? chartviewer ...
by terrie
Wed Jul 21, 2004 9:04 am
Forum: JFreeChart
Topic: using JFreeChart with JSP
Replies: 85
Views: 486586

thanks in advance

another question is that how to modify the xml to use the servlet class?

THX
by terrie
Wed Jul 21, 2004 8:26 am
Forum: JFreeChart
Topic: using JFreeChart with JSP
Replies: 85
Views: 486586

THANKS A LOT Where should I put the following code?where should I place after complie the following class?Wht the name of the class should be? chartviewer Servlet : private void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { // get the chart ...
by terrie
Wed Jul 21, 2004 8:01 am
Forum: JFreeChart
Topic: real time displaying graph in jsp
Replies: 6
Views: 8275

THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX in advance I have try to search in this forum for keyword likejsp,servlet,timeseries...etc... and also run jfreechart-sample.war file. Most the suggestion is seem to write sevlet class. As I want all job done in one jsp file like connecting to JDBC, SQL stmt and H...
by terrie
Wed Jul 21, 2004 7:51 am
Forum: JFreeChart
Topic: real time displaying graph in jsp
Replies: 6
Views: 8275

THX

i agree with ur point that i get image display in the second case and not in html.

may i ask can how can i display the image in the first case with html code(i.e. both of "hihihi" and the chart)?

thanks in advance
by terrie
Wed Jul 21, 2004 7:41 am
Forum: JFreeChart
Topic: real time displaying graph in jsp
Replies: 6
Views: 8275

thx in advance for ur reply let me make it more clear when I use img src="<%= graphURL%>" , the chart can't be displayed and "hihihi" can be displayed. the display i can see like that: >> hihihi :arrow: the chart with nothing and the red"X" on top-left-corner ewqewqewqedsadasd << when I use img src=...
by terrie
Wed Jul 21, 2004 4:18 am
Forum: JFreeChart
Topic: real time displaying graph in jsp
Replies: 6
Views: 8275

real time displaying graph in jsp

Here is my code: <HTML> <HEAD> <%@ page contentType="text/html; charset=Big5" %> <%@page import="java.util.*"%> <%@ page import="org.jfree.data.DefaultCategoryDataset"%> <%@ page import="org.jfree.data.time.*"%> . . . ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection()); ...