If you can go to the examples and run them in tomcat then just mirror the hello world program which is a servlet in the webapps example directory. Use the examples as a reference - that why they are there. You need to add a context in you server.xml file. Look at the example context and copy it and change it for your webapp. and then create your own webapp. Like -- webapps\test\  -- just like webapps\examples -- also copy the web.xml file from example and delete everything referring to any of the examples except the hello world. You can add all the directories that example has and utilize them as you mimic the examples. This is a Great way for a beginner to learn tomcat and servlets. I would learn servlets first and then go on to JSP. First things first.
-- Pete --   
----- Original Message -----
From: Vivienne
Sent: Wednesday, January 03, 2001 9:47 AM
Subject: Newbie Q: How to get a Servlet workiing?

Hi, I recently got Tomcat 3.2.1 running (standalone) on my Redhat 6.1 machine.
 
I got it installed in /usr/local/tomcat and has changed nothing.
 
Supposed I got a servlet class, say abc.class then where should I put this file and what else do I need to do with Tomcat configuration to get it running?
 
Thanks
 
Bosco

Reply via email to