Re: displaying images in war files



bbulsara23@xxxxxxxxxxx wrote:
Hi, same problem that lots of people have/are having but can't find a
solution.

I have .war file with hierarchy /WEB-INF/images/testimage.gif

The images aren't being displayed in the webpage along with all the
other content (from /WEB-INF/jsp/*). But, they also aren't being
displayed in a browser! The URL I enter for the webpage that displays
is

http://localhost:8080/testapp/index.jsp

The URL's I enter for the image that doesn't display is

http://localhost:8080/testapp/../images/testimage.gif
or
http://localhost:8080/testapp/images/testimage.gif
or
http://localhost:8080/testapp/WEB-INF/testimage.gif
or
http://localhost:8080/testapp/WEB-INF/images/testimage.gif

I'm desperate. What should I try?

testimage.gif exists in the WAR file with location
/WEB-INF/images/testimage.gif

Why do you insist on storing the images/jsp in the WEB-INF directory?
.



Relevant Pages

  • Re: 800x600
    ... >>> browser window shrinks you end up with a photo with one word per ... So if you want to display images at a size ...
    (uk.net.web.authoring)
  • Re: newbie: image problems again
    ... path to the ImageUrl property. ... But the webpage doesn't display the image. ... browser displays the standard image telling that image not found / ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: 800x600
    ... >> larger browser window and a lot of the space is then blank. ... > display your page. ... Size), images cannot. ...
    (uk.net.web.authoring)
  • jpg / gif images smeared on IE6-Outlook6
    ... Red X Instead of Images - Can't see or save Images/Pictures ... Change the DPI setting from Large to Normal and see if that helps. ... unchecked to display pictures all the time. ... Please reply to the newsgroup so others may benefit. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Alternatives to Iceape Display Problems?
    ... automaticaly transfers url links in received emails to the iceape ... Convenient but the browser is not alway able to display images ... You mean Iceape browser is not displaying images nor flash player videos ...
    (Debian-User)