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.
Originally posted by Ulf Dittmer: You can't. JSPs (and thus also JSP tags) are for creating text, not for streaming binary data. You will need to use a servlet to do this.
thank Q , i put that code in servlet then can i call that servlet in dotag() using the attribute src.
Joined: Mar 22, 2005
It sounds like you are trying to somehow embed an image in a web page - that is not going to work. You need to write an <img> tag into the web page, and the src attribute of that img tag then points to a servlet that serves the raw image data.
subject: How to give Servlet response from Tag Handler class?