Get your CodeRanch badge!*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 60050
    
  65

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
 
Similar Threads
when i retrive data from access it showing empty page in tomcat
Problem in using date in WHERE clause in SELECT query in Servlet.
Redirecting a page
how can i compare a session parameter value with variable value?
spaces while populating using s:iterator