Bookmark Topic Watch Topic
  • New Topic

Problem in displaying Images

 
Swapna Gouri Kalanidhi
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Ranchers
I'm trying to display images in a web page using JSP, but in vain. I have tried creating a folder in WEB-INF where I placed the images, but still I'm not able to see any images on the web page. I'm using Eclipse IDE with Tomcat6.0... Here's the actual program...



And this is what's displaying on browser when I try to access http://localhost:8080/GOX/Images/MicroParts_home.jpg



Also when I'm trying to access the Home page, I can just see a small icon instead of the image... I have read the other threads related to the same problem and tried a few of them but I'm not able to get the desired output.
Does anyone have any idea as to what needs to be done?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65518
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Images placed in WEB-INF can not be addressed.

See the JSP FAQ on problems with resource URLs. This is a common question which has already been answered,
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!