Re: displaying images in war files
- From: Moiristo <R.delange@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 06 Jul 2006 19:47:05 +0200
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?
.
- Prev by Date: Re: String how to partially replace special char/string
- Next by Date: Re: browser reload button and Applet
- Previous by thread: Efficient O-R mapping
- Next by thread: Re: displaying images in war files
- Index(es):
Relevant Pages
|