Remember that a
JSP is just a template to create an HTML page to send to the client. So how would you solve this in an HTML page?
The text would simply go on the page, and the image would be referenced via an <img> tag. The URL of the image tag could be a "hard" URL of the image file on disk, or the URL to a
servlet that returns the image data (with corresponding content type).
hth,
bear