Think about how a HTML page containing an image is built. Each chart or other image must be the result of a separate IMG tag that you write in your JSP. The SRC= attribute in the IMG tag should point to a servlet that can generate the binary image data. You can't use a JSP to generate typical image files because a JSP is designed to output text, not binary image data. There have been a number of discussions of this here. Any book on servlets will tell you how this is done. Bill
I have my <img ...> tag point to a servlet which gets a chart using JFree chart (jfree.org), then uses a class included in the Jfree stuff that will display the image with the OutputStream. Display line is something like: ChartUtilities.writeChartAsJPEG(out,chart,820,380);
Author and all-around good cowpoke
Joined: Mar 22, 2000
William,thank you for your reply.Someone told me img=attribute tag poits to a .dll file can also solve the question.right?
The IMG tag in HTML requires a SRC="URL" - the url is used to load the image data. That could be the URL of a servlet plus parameters that might include the name of a dll that is somehow involved. What image source do you want to use? Bill
Joined: Jun 06, 2002
What is a "dll" ?
Joined: Jul 08, 2003
Something like :<IMG height="268" border="0" width="323" SRC="http://188.8.131.52:8080/wwwhq.dll?srv=401&...">