gif/png
format
Another way is to use a servlet to generate an image. In your html page, use
an image tag
to convert the image object to output stream pipe.Here is the code snippet.
Just a references. Look up the details to suit your needs.
/*********************************************************/
ServletOutputStream out = response.getOutputStream();
Frame f