leave it there.  otherwise you would need to make an entry for your
own app.  just learn what they are doing first.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 2:47 PM
Subject: web.xml


> Hi, in the directory ~webapps\examples\Web-inf  directory I added this:
>
>     <servlet>
>     <servlet-name>
>         helloworld
>     </servlet-name>
>     <servlet-class>
>         HelloWorldExample
>     </servlet-class>
>    </servlet>
>    <servlet-mapping>
>     <servlet-name>
>         helloworld
>     </servlet-name>
>     <url-pattern>
>         /helloworld
>     </url-pattern>
>    </servlet-mapping>
>
> to the web.xml directory. I am assuming that from this there has to be a
java
> class in the    ~/webapps/examples/Web-inf/classes directory called
> HelloWorldExample. However when I call this with a browser do I have to
call
> it like this:
> http://localhost/examples/helloworld  -or-
> http://localhost/examples/servlets/helloworld -or-
> http://localhost/examples/HelloWorldExample
>
> Also does it matter where you put the servlet helloworld. Currently it's
in
> "C:\tomcat\webapps\examples\servlets\helloworld.html"

Reply via email to