> From: athula bogoda [mailto:[EMAIL PROTECTED] > Subject: Help Me on Servlet in Tomcat 5.0 > > But confused where should i should put it and run > on my local machine typing http://localhost/
1) Read the servlet spec: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html 2) Read the Tomcat deployment doc: http://tomcat.apache.org/tomcat-5.0-doc/appdev/deployment.html 3) Suggest using 5.5.20, not an outdated version of Tomcat. 4) Declare your class to be part of some package. 5) If you want this servlet to be part of the default webapp, it must be placed in webapps/ROOT, either in a .jar in webapps/ROOT/lib or as a .class file under webapps/ROOT/classes. 6) Define the appropriate servlet mapping in webapps/ROOT/WEB-INF/web.xml. 7) Reconfigure the HTTP connector in conf/server.xml to use port 80 rather than the Tomcat default of 8080. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]