facebook

where’s the image

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #242121 Reply

    David
    Member

    I have a JSP that needs displays an image, but when I run it, I just get an empty square where the image should be. here is the code:

    <img src=”/WEB-INF/images/logo_BITMAP_format_small_BLUE.jpg” width=”210″ height=”140″>

    I have verified that the image file exists in both the local and Tomcat\webapps\WEB-INF\images directory. Is this not the proper way to put an image on a page?

    #242142 Reply

    dwilhelm
    Member

    @sonoerin wrote:

    I have a JSP that needs displays an image, but when I run it, I just get an empty square where the image should be. here is the code:

    <img src=”/WEB-INF/images/logo_BITMAP_format_small_BLUE.jpg” width=”210″ height=”140″>

    I have verified that the image file exists in both the local and Tomcat\webapps\WEB-INF\images directory. Is this not the proper way to put an image on a page?

    The WEB-INF directory is not accessible for a browser. Put the image for example into /Tomcat/webapps/your-app-name/images and change the image src to src=”images/logo_BITMAP_format_small_BLUE.jpg”.

    #242259 Reply

    David
    Member

    Thank you, that did the trick!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: where’s the image

You must be logged in to post in the forum log in