tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Servlet / Tomcat question
Date Thu, 06 Jun 2002 13:38:57 GMT
If your web-application is called MyApp, and your servlet class is
com.mycompany.myclass, you'd access it as

If you deployed to the ROOT web app, so that your context is the root
context, you would remove the /MyApp/ part from the above URL.

If you have a web.xml file (a Deployment Descriptor is a good thing to
have -- it'll become a good friend of yours ;)), you can alias the
servlet like


And then you could access it as

See the Servlet Spec (v2.3 if you're using tomcat v4.x) for what goes in
the Deployment Descriptor etc.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Scott Seidl []
>Sent: Wednesday, June 05, 2002 9:19 PM
>Subject: Servlet / Tomcat question
>I'm stumped.  I have a web application (term used loosely) which was
>created using Borland's JBuilder.  The servlets in this application
>worked fine when I ran them in JBuilder and accessed them locally.  I
>now want to place them on an Apache Tomcat web server.  I can compile
>and deploy the code using ant and Tomcats manager (which also show that
>the web-app is running).  The problem I have is that I don't know how
>correctly call these servlets from the html.  With JBuilder we called
>them with the following type of command:
>Can someone give me some idea on how to call these servlets with
>I do not have a web.xml file within my WEB-INF.  I do not quite
>understand the role of this file, and how to configure it.  Any help
>with either of these topics is welcome :-).

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message