This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "display image and text" Watch "display image and text" New topic
Author

display image and text

yogitad devarajan
Greenhorn

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!!
thanks
yogita
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

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] [Bear's FrontMan] [About Bear] [Books by Bear]
David O'Meara
Rancher

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
 
Don't get me started about those stupid light bulbs.
 
subject: display image and text