If you mean that you want to generate an image, any servlets/JSP book (mine included) will tell you how. Note that JSP is NOT designed to serve binary data like images, you will have to use a
servlet - don't panic, it isn't hard.
You could also go the SVG route (Scalable Vector Graphics) which a JSP could generate, but that may be harder to program.
Bill