tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Seidl" <>
Subject RE: Servlet / Tomcat question
Date Fri, 07 Jun 2002 04:02:52 GMT
Thanks for the help, but I'm still having problems.

The package of the servlet I'm trying to access is ltshoppingcart and
the servlet name is Login.  So I have tried accessing the servlet by
going to http://localhost:8080/lt2001/servlet/ltshoppingcart.Login and
all I get is a message from Tomcat saying that the requested resource is

Any ideas?


-----Original Message-----
From: Shapira, Yoav [] 
Sent: Thursday, June 06, 2002 8:39 AM
To: Tomcat Users List
Subject: RE: Servlet / Tomcat question

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:

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

View raw message