andy C wrote:
>
> You need the Acme graphics library.  There are two ways to do it,
> either generate the picture and
> stream it out as type "image/gif" or create a file on the fly and
> return an img tag to it.
>
> The Library is available at: http://www.acme.com/
>
> Try this just to return the image.  However I think that generating a
> file is more efficient.
>
> void DisplayGraph(HttpServletResponse res,)
> throws IOException{
>     Frame frame = null;
>     Graphics g = null;
>  int Scale=1;
>  System.out.println("Entering Display");
>  ServletOutputStream out = res.getOutputStream();  // binary output!

And to give proper credit for this code, it came from my book "Java
Servlet Programming" Chapter 6, see http://www.servlets.com.

-jh-

--
Jason Hunter
[EMAIL PROTECTED]
Book:    http://www.servlets.com/book
2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html
2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to