| Author |
Display a set of data in graphics format.
|
Mike Yu
Ranch Hand
Joined: Nov 17, 2001
Posts: 175
|
|
Hello, Can someone tell me how to display a set a data in the format of graphical diagram when using JSP or HTML?
|
Thanks,<br />Mike
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
If you mean that you want to generate an image, any servlets/JSP book (mine included) will tell you how. Note that JSP is NOT designed to serve binary data like images, you will have to use a servlet - don't panic, it isn't hard. You could also go the SVG route (Scalable Vector Graphics) which a JSP could generate, but that may be harder to program. Bill
|
Java Resources at www.wbrogden.com
|
 |
Mike Yu
Ranch Hand
Joined: Nov 17, 2001
Posts: 175
|
|
Hi Bill, Thank you for your response. I did not really mean to generate an image like a photo. I mean to display the data using coordinates (x, y), and use a curve to connect the points; or to display the data using a chart. Ideally, the display should be dynamic. Can we make it, Bill?
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
That sure sounds like an application for an applet. You can use JSP to set up the page an applet lives in, but you would need a servlet for the applet to talk to and get current data. Bill
|
 |
Mike Yu
Ranch Hand
Joined: Nov 17, 2001
Posts: 175
|
|
|
Thanks, Bill. Do you happen to have some code example about this?
|
 |
 |
|
|
subject: Display a set of data in graphics format.
|
|
|