Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in displaying Images

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic