wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60761
    
  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]
 
wood burning stoves
 
subject: image not displaying on page
 
Similar Threads
how can i compare a session parameter value with variable value?
Problem in using date in WHERE clause in SELECT query in Servlet.
spaces while populating using s:iterator
when i retrive data from access it showing empty page in tomcat
Redirecting a page