The moose likes JSP and the fly likes image not displaying on page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "image not displaying on page" Watch "image not displaying on page" New topic
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: 61768
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: image not displaying on page