• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet chaining and images

 
Sachin Deshpande
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a servlet, say X, which only shows an image(no text-nothing; just the image). I want to use this image in a HTML page being generated in another servlet, say Y, via (servlet chaining). how do i achive this?
a small bit of code wher the actual chaining occurs would be most useful
thnx
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember - the HTML page can only contain an <img> tag - it is up to the browser to request the image from the servlet X.
Although some servlet engines such as JRun support servlet chaining, it seems pretty clumsy to me and is NOT in the servlet API. The "Filter" mechanism which appears in the 2.3 API is a lot clearer - I bet it will replace all chaining schemes.
Bill

------------------
author of:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic