• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Writer Already obtained

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm displaying a dynamic image in a JSP page as per the Sun Tech Tip
http://developer.java.sun.com/developer/JDCTechTips/2001/tt0821_update.html
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,
Kris.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic