If you are interested, there is a working demo included with JFreeChart: http://www.object-refinery.com/jfreechart/index.html
Take a look at the ServletDemo2 and ServletDemo2ChartGenerator classes. Regards, Dave Gilbert JFreeChart Project Leader On Monday 30 September 2002 9:44 pm, Kenny G. Dubuisson, Jr. wrote: > That worked great. Thanks for the info. Also thanks to the others who > offered different flavors of the same idea. > Kenny > > ----- Original Message ----- > From: "Richard Yee" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, September 30, 2002 2:38 PM > Subject: Re: Mixing HTML and JPEG image on one output page > > > Kenny, > > Use two servlets or a JSP and a servlet. One jsp/Servlet outputs the HTML > > page with an img tag that has the src attribute that specifies a URL to a > > second servlet that produces the JPEG image. > > > > -Richard > > > > At 02:27 PM 9/30/2002 -0500, you wrote: > > >I'm trying to write a servlet that draws a chart and put's some HTML > > > info about the chart on a page. For a test, I got a servlet to draw a > > > blue rectangle (proving my graphics and JPEG encoding worked) in my > > > browser. > > The > > > >problem I'm having is that I can't seem to add HTML to the page; it only > > >draws the rectangle when I send the graphics as a single JPEG image. > > > > > >Does anyone know how to mix an embedded JPEG image and regular HTML? > > 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 ___________________________________________________________________________ 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