• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

image not displaying on page

 
Sachin Kadian
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am creating a webpage in which i am trying to display an image. i did coding for that. when i put the jsp directly in the browser all things are going fine and the image is displaying. but when i am making a war file and puting this on apache tomcat and running the jsp then the image in not displaying. all other things are going fine here too but only the image is not displaying.



the image 4.jpg is in the same folder as this jsp.
please help me to display the image on the page..
thanhx in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Page-relative addressing is almost guaranteed to cause problems. Use server-relative addressing in which the URL begins with the context path. See the JspFaq for more info.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic