Wednesday, February 26, 2003 01:17 PM
There may be better ways of doing this, but one way is to
1. Retrive the resultset, convert this into a results object and place into session.
2. Servlet(with html contenttype) will create a table, after getting the textual rows from this object.
3. The image column cd be populated with an html image element with its src pointing to either the same servet or another servlet(this will have contenttype=image), which will send back the image, as it also has access to data from the session.
Wednesday, February 26, 2003 01:08 PM
You are correct, you can not do both.
Use a Servlet to stream or write a Class to write the image to disk.
Use JSP to call the Servlet or point to the location your class wrote the image to. Use some inline logic to display the associated data for the image.