tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Neihouser <pier...@lionet.ie>
Subject Re: Tutorial needed on adding a Servlet to tomcat
Date Wed, 18 Oct 2000 09:47:13 GMT
Maybe you could start by having a look at the servlet specification from SUN.

http://java.sun.com/products/servlet/download.html#specs

I recommend you to download the version 2.2 which is the version that Tomcat is
based on.

--
Pierre


"Escolar, Carlos (Carlos)" wrote:

> I just started using Tomcat.  I am trying to add a Servlet, and I am finding
> it not well documented.  (Isn't this the first thing that every one wants to
> do?)  Could somebody please update the build/tomcat/doc/tomcat_ug.html file
> with this information?
>
> Lets say that I have a class called com.avaya.myclass and I want to get to
> it using the URI:
> http://localhost:8080/MC
>
> Which steps must I take to accomplish this?
>
> (I have figured out that if I create a directory under
> build/tomcat/webapps/examples/WEB-INF/classes called com, then a directory
> named avaya and then place myclass.class there, the following URI will work
> to reach my Servlet:
>
> http://localhost:8080/servlet/com.avaya.myclass
>
> I would like to know:
>
> 1) How do I create a synonym so I don't have to type the long
> "servlet/com.avaya.myclass".
> 2) How do I tell Tomcat where my classes are (so I don't have to place them
> under webapps/examples)
>
> Carlos Escolar
> Avaya Inc.
> cescolar@avaya.com


Mime
View raw message