You need to add a welcome file entry in the web.xml. Look at using filters to do some pre processing on all requests.
Regards Jim. -----Original Message----- From: Mark Biciunas [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 22:49 To: Tomcat Users List Subject: Re: images not appearing Hi, I changed webapps/helloworld/WEB-INF/web.xml to have a url pattern of /hello. I also changed conf/server.xml to set the Context path="/hello". When I go to my browser with http://192.168.1.3/hello, I get a directory listing for /. This is great because I can see the images directory (with my images properly in place). Unfortunately, the servlet doesn't execute at all???? I would like to think I would see the servlet executing. Any ideas? Also, this solution is problematic anyways, as I need to parse all incoming requests and respond to them, Only multimedia (images, etc.) should not be handled by the servlet. BTW, I can't find the spec SVR.11 - anyone have a link? Mark Biciunas [EMAIL PROTECTED] ----- Original Message ----- From: "Stefan Radzom" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 4:44 PM Subject: RE: images not appearing > > -----Original Message----- > > In webapps/hello/WEB-INF/web.xml, I have the following: > > > > <web-app> > > ... > > <servlet> > > <servlet-name>helloworld</servlet-name> > > <servlet-class>helloworld.Hello</servlet-class> > > </servlet> > > > > <servlet-mapping> > > <servlet-name>helloworld</servlet-name> > > <url-pattern>/</url-pattern> > > </servlet-mapping> > > > > </web-app> > > > > > > You are trying to map every request to your helloworld servlet. This means > really *all* requests (including images etc.) Try to be a bit more specific, > like <url-pattern>/helloworld</url-pattern> . See the spec (SRV.11) for more > details on request mappings. > > -Stefan > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
