Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image in HTML content

 
Glories Moh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

I have servlet code that set content to HTML and print HTML tags

I have one problem with image , the image is not displayed even I set src attribute to the correct path

where I should place the image ? , I put it in the ROOT folder but the problem is not solved


note : I use local tomcat server

please help me


thanks in advance




 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the image is not appearing, chances are that you have not used the correct URL path.

Please TellTheDetails. Without knowing what you set the path to, it's impossible to even guess how it might be incorrect.
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post your code? It will help us to help you.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic