Hi, all. I've searched all over the web and see this is a common problem... However, the suggestions I've come across have yet to solve my problem.
I have a simple
JSP file and I'm attempting to display an image. My folder structure in Eclipse is:
MMABully
--- WebContent
------META-INF
------WEB-INF
------index.jsp
------Success.jsp
------Logo.jpg
Code in my index.jsp file:
You'll notice an img src tag and below it an a href tag. Going to Success.jsp works, but Logo.jpg will not display.
I've also tried <%= response.getContext() %> in the image tag but that doesn't work either.
So both Success.jsp and Logo.jpg reside in the same place. I can get to one but not the other. I'm totally stumped.
Other things I've tried:
- Putting Logo.jpg in the webapps/ folder in my
Tomcat directory