Since i am new to Tomcat i installed tomcat 5 on a Suse 8.2 linux machine and tried to 
install the First Webapp Servlet example.
I have placed all files in subdirectories of myapp, thus:
myapp/src/mypackage/Hello.java, 
myapp/web/WEB-INF/web.xml 
myapp/web/image/tomcat.gif

After ant install and starting a local browser, the text output is shown correctly but 
the image is not displayed. I cant figure out why the image isn't shown. Did i mis 
something in the web.xml? (see below)

<web-app>
 <display-name>My Web Application</display-name>
 <description>This is version X.X of an application.</description>
 <servlet>
   <servlet-name>myapp</servlet-name>
  <display-name>Description of mypackage servlet.</display-name>
  <description>Description of mypackage servlet.</description>
  <servlet-class>mypackage.Hello</servlet-class>
 </servlet>
 <servlet-mapping>
   <servlet-name>myapp</servlet-name>
   <url-pattern>/</url-pattern>
 </servlet-mapping>
</web-app>
 
Thanks for any help.
Peter

Reply via email to