What is the src of the img tag in your html file? Some tools will
put fully qualified file names in there instead of relative paths.
Randy
> -----Original Message-----
> From: Algarve, Leila [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 11:11 AM
> To: '[EMAIL PROTECTED]'
> Subject: [NEWBIE] Static html pages do not show image files
>
>
> Hi!!!
>
> I am running Tomcat 4.0b5 standalone in Windows NT 4.0.
> I've created a new web-application in $tomcathome$\webapps
> without creating
> a war file (I am at the early stage of development), with one
> html static
> page and one servlet. I can access the html page and the
> servlet without
> problem but I cannot see any image (gif). The html and the
> images are in the
> same directory ($tomcathome$\webapps\MyWebApp), if I open the
> html file
> (without using Tomcat) the images just show fine.
>
> The only thing that I changed in the server.xml was that I added a new
> context for my web-application. In the
> $tomcathome$\webapps\MyWebApp\WEB-INF
> directory I have my web.xml:
>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application
> 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> <web-app>
> <display-name>Servlet Applicationt</display-name>
> <description>This the servlet aplication
> </description>
> <servlet>
> <servlet-name>MyServlet</servlet-name>
> <servlet-class>MyServletClass</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>MyServlet</servlet-name>
> <url-pattern>/MyServlet</url-pattern>
> </servlet-mapping>
> </web-app>
>
> What am I missing?
>
> Thanks
> Leila
>