You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ashant Chalasani <as...@hotmail.com> on 2001/02/17 20:38:04 UTC

Re: [NEWBIE] Running Servlets on Tomcat

Ritin,

The complete instructions to configure your Tomcat environment can be found 
in the /docs directory under your tomcat root.  Additionally the servlet 
specs also are helpful in describing the web.xml file etc., you'll find that 
@ http://java.sun.com/aboutJava/communityprocess/review/jsr053/index.html

Quickly...

>c:\tomcat\webapps\user\web-inf\classes\hello.class
>1. Where to store the .class files ?

This is the right folder to store your .class files.  Don't forget to change 
the context path in server.xml file (in this case to point to /user 
directory)

>2. what link to give to the browser ?

The browser needs to call something like this...

http://localhost:8080/<context_path>/servlet/<class_name.class>
Note that this path holds good only for invoking .class files, not regular 
htmls or jsps etc.

>3. in what way should i configure the web.xml file ??
>     ( there is already a web.xml file in tomcat\conf\......)

The web.xml is the Deployment Descriptor file for your web-app, you can find 
all config. details in the Servlet Spec.

Cheers

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.