Put your class file in ./Web-inf/classes/ and add the following to you ./Web-inf/web.xml file:
 
<servlet>
<servlet-name>
    ABC
</servlet-name>
<servlet-class>
    abc
</servlet-class>
</servlet>
If you want to hide the fact that it's a servlet you can add the following to your web.xml
 
<servlet-mapping>
<servlet-name>
    ABC
</servlet-name>
<url-pattern>
    acb.htm
</url-pattern>
</servlet-mapping>
 
 
Michael Wentzel
Software Developer
Software As We Think
-----Original Message-----
From: Vivienne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 12:48 PM
To: [EMAIL PROTECTED]
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