Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display image and text

 
yogitad devarajan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your problem similar to these?

preparing a jsp that has both image and text
Display images and text
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic