November 29th, 2001, 07:01 AM
using servlets for creating images
I am new to jsp and servlets.....and i want to make graphs using the data available from the server side.......i don't know how to start????..please provide me guidelines or suggestions...how to start with the same?????.....thanx in advance.
December 2nd, 2001, 06:17 PM
I'm thinking here, bear with:
You might try an HTML web page that posts to a JSP backend that records data coordinates to a MySQL database. The fancy way of making a graph: allow a Flash .swf file access to the MySQL database, parse the coordinates, and make a graph. You can also make it more complex if needed. If you want, I can research this further and develop this for you if you want; I'll do this for $150. If not, I can continue to give you advice as you need it for free. Thanks for your time.
December 3rd, 2001, 05:37 PM
How about using SVG? Here's more info:
December 4th, 2001, 03:46 AM
December 23rd, 2001, 02:35 PM
Have you tried creating an AWT of Swing image then using a GIFEncoder(there are a couple of freeware ones available) to write it directly to the output stream (being sure to set the content type to "image/gif" ?
I did this a while ago, and it didn't seem too tricky
December 24th, 2001, 02:41 PM
Another way is to launch an external process that generates image files, write the dataset & other information into its standard input, then pick up the stream of bytes at its standard output and output them with content type "image/gif" or "image/png".
Read up on java.lang.Process and java.lang.Runtime on how to use system processes.
There are a number of image-rendering packages available, e.g. Gnuplot, Ploticus.