Howdy, If your servlet class is com.mycompany.MyServlet, and you'd like it to be accessed as /MyServlet under your webapplication, add the following to your web.xml:
<servlet> <servlet-name>MyServletName</servlet-name> <servlet-class>com.mycompany.MyServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>MyServletName</servlet-name> <url-pattern>/MyServlet</url-pattern> </servlet-mapping> Please note elements must be in the web.xml in the order specified in the servlet specification, v2.3. That document is available for download at http://java.sun.com/products/servlet/index.html While one doesn't have to memorize the servlet spec in order to develop servlets, this kind of information is basic, and covered in detail (with examples) in the specification. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Steve R Burrus [mailto:[EMAIL PROTECTED]] >Sent: Saturday, January 18, 2003 4:32 PM >To: Tomcat Users List; [EMAIL PROTECTED] >Subject: Re: Can't find servlet > > David, how do you do that servlet mapping "thing" anyway???! I STILL >haven't seen >one servlet using Tomcat to view it with, sad to say!! And, while you are >hopefully answering me, tell me just how exactly I edit the web.xml file >for the >servlet name and class tags please. > >__________________________________________________ >Do you Yahoo!? >Yahoo! Mail Plus - Powerful. Affordable. Sign up now. >http://mailplus.yahoo.com > >-- >To unsubscribe, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>