Step-1 start tomcat server
(configure two environment variable
JAVA_HOME(c:\jdk1.7), CATALINA_HOME(d:\tomcat)
Step-2 verify http://localhost:8080
Step-3 create folder hierarchy
step-4 write servlet program (ready source code)
D:\tomcat\webapps\mca\WEB-INF\classes\Hello.java
step-5 compile servlet
set environment variable
classpath=d:\tomcat\lib\servlet-api.jar
Step-6 do the entry in web.xml file
step-7 run program (in browser)
http://localhost:8080/mca/HW