File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes display image and text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "display image and text" Watch "display image and text" New topic

display image and text

yogitad devarajan

Joined: Oct 18, 2006
Posts: 8
Hi ,
I am trying to display an image and text but I am not sure abt how to do it..I tried to create a servlet to display the text and set the setcontenttype to text/html and tried to call another sevlet which has the image by setting the img src to point to that servlet..but it dosen't work ..could anyone let me know how to do it or if I could get sample code , that would be great!!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

but it dosen't work

These are the four most useless words you can post to these forums.

Your approach is correct. In order to diagnose why it doesn't work we need to know a lot more than "it doesn't work".

[Asking smart questions] [About Bear] [Books by Bear]
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Is your problem similar to these?

preparing a jsp that has both image and text
Display images and text
I agree. Here's the link:
subject: display image and text
It's not a secret anymore!