Bear Bibeault wrote:The URL for the <img> tag needs to be to a servlet that sends the image data. Having the image blob in the JSP is not useful. Remember, JSP just creates HTML. When you write the page in HTML do you give the image tag a blob of data? No. You give it the URL of the image.
ksh agarwal wrote:And i am calling it from jsp like this
<img />
Bear Bibeault wrote:
ksh agarwal wrote:And i am calling it from jsp like this
<img />
Be sure to disable HTML when you post HTML code or your image tags will be empty.
Please repost with the real code.
ksh agarwal wrote: as I am not able to display those with tags...
Bear Bibeault wrote:
ksh agarwal wrote:And i am calling it from jsp like this
<img />
Be sure to disable HTML when you post HTML code or your image tags will be empty.
Please repost with the real code.
Bear Bibeault wrote:You need to prefix the url to the image with the context path. Use: ${pageContext.request.contextPath}
Bear Bibeault wrote:That URL does not match the pattern you specified in the deployment descriptor.
Bear Bibeault wrote:Are you setting the content headers on the response correctly? Is the image data correct?
Likely easier to debug if you just type the URL for the image into the browser's address bar.
Use the browser tools to inspect the response for correctness.