Try this:
ear
ejb
.....
Meta-Inf
....
web
*.jsp
*.html
.....
images
*.gif
Meta-Inf
....
Web-Inf
....
You can then in your jsp pages use this construction to find images (or in
case of servlets you can generate the element bellow through your code):
.....
<img src="<%=request.getContextPath()%>/images/app-logo.gif" .....
.....
Hope this help
Petr
----- Original Message -----
From: Paul G. Markovich <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Friday, March 02, 2001 11:51 PM
Subject: Finding my images
> Hi,
>
> I have set up a web.xml file in the
> default-web-app directory, it reads
> as follows:
> <web-app>
> <servlet>
> <servlet-name>MyApp</servlet-name>
> <servlet-class>com.testing.test</servlet-class>
> <load-on-startup>1</load-on-startup>
> <servlet-mapping>
> <servlet-name>MyApp</servlet-name>
> <url-pattern>*.tnt</url-pattern>
> </servlet-mapping>
> </web-app>
>
> I have images that don't show up in the
> servlet and I believe I don't have the
> image directory in the right location
>
> If I access the servlet like this
> http://localhost/MyApp/GetListing.tnt
>
> When the page is served, my images don't
> show up, and they show the following path
> http://localhost/MyApp/myimage.gif
>
> Q1) Where should the images be placed to be
> found.
>
> Q2) Do I need to do an image mapping someplace??
>
> thanks,
>
> Paul