| Author |
image not displaying on page
|
Sachin Kadian
Ranch Hand
Joined: Jan 24, 2012
Posts: 33
|
|
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
Joined: Jan 10, 2002
Posts: 56192
|
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: image not displaying on page
|
|
|