You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Scott Seidl <sm...@worldnet.att.net> on 2002/06/06 03:19:20 UTC

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 to
correctly call these servlets from the html.  With JBuilder we called
them with the following type of command:
http://localhost:8080/servlet/ltshoppingcart.cart.
 
Can someone give me some idea on how to call these servlets with tomcat?
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 :-).
 
Thanks
Scot

Re: Servlet / Tomcat question

Posted by Adrian <at...@charter.net>.
place the classes in webapp/myapp/WEB-INF/classes/
then you would call them with

http://127.0.0.1:80/myapp/servlet/name_of_servlet


----- Original Message ----- 
From: "Scott Seidl" <sm...@worldnet.att.net>
To: <to...@jakarta.apache.org>
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 to
> correctly call these servlets from the html.  With JBuilder we called
> them with the following type of command:
> http://localhost:8080/servlet/ltshoppingcart.cart.
>  
> Can someone give me some idea on how to call these servlets with tomcat?
> 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 :-).
>  
> Thanks
> Scot
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>