This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Keep in mind that your JSP will be writing HTML pages with image tags giving URLs that point to the actual graphics generator. As binary data, the actual images should be created and/or served by servlets, NOT JSP.
This topic comes up alot - try searching in this forum and the servlets forum.