• 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: 13078
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:
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!