This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes Writer Already obtained Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Writer Already obtained" Watch "Writer Already obtained" New topic

Writer Already obtained

Kris Parr

Joined: Aug 13, 2001
Posts: 8
I'm displaying a dynamic image in a JSP page as per the Sun Tech Tip
I then include the servlet as a usebean and call a method on it to output
the image into the JSP. This is working ok but the remaining HTML on the
page does not display because the OutputStream is already obtained. I guess from the servlet displaying the image.
Is there any way I can display this dynamic image inline in a JSP page ?
Hope you can help,
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13018
You do understand that a browser makes a separate request for every image in a page, right? You can't serve image data INLINE in a JSP, you can only insert a source reference. That reference can be to a servlet that responds with the binary image data.
I agree. Here's the link:
subject: Writer Already obtained
jQuery in Action, 3rd edition