How to run Servlet program (JAVA, TomCat)

To run the servlet program you have to follow the steps:
1.Install java
2.Install tomcat
3.create your own folder in the tomcat folder
4.create html file
5.create java file
6.compile java file
7.Make entries of java file in web.xml file
8.Start tomcat server
9.Run your program