wood burning stoves 2.0*
The moose likes JSP and the fly likes Display a set of data in graphics format. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Display a set of data in graphics format." Watch "Display a set of data in graphics format." New topic
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: 12761
    
    5
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
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: 12761
    
    5
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?
 
Don't get me started about those stupid light bulbs.
 
subject: Display a set of data in graphics format.
 
Similar Threads
Date Format
passing the values from popup window to jsp
Show Graph Labels as Percent
struts bean:write tag with format key
table distribution in jsp