Creating Servlets in different dir and Running on Tomcat

I have now gotten Apache and TomCat running on a 2000 server (They wouldn't buy me a UNIX server) and I can run the examples and things like that, when I wrote and compiled even the simple Hello World servlet and compiled it I get nothing. How do I set my directors in order to be able to run servlets from there?

Thanks

-Derrick

[356 byte] By [Dalbers] at [2007-9-26 7:27:40]
# 1

See:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/deployment.html

1) create a webapp. let's call it "myapp". Call yours whatever you want.

2) create a "myapp" directory in $TOMCAT_HOME/webapps.

3) create a deployment descriptor (web.xml) for your webapp and place it in $TOMCAT_HOME/webapps/myapp/WEB_INF. There are plenty of example webapps and web.xml files shipped with Tomcat, which you can find in the webapps directory. There are also examples and instructions on the jakarta.apache.org website and elsewhere.

4) Place your html, jsp, class, jar, etc. files in the appropriate places as described on the web page, the link to which is at the top of this post.

P.S. Don't worry about having to use Tomcat on a 2000 server. Tomcat is not very scalable, and will start bogging down well before your cpu. It's adequate for low to low/mid traffic, though.

blutofsky at 2007-7-1 17:22:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...