As shown in the above figure while developing an application some rules need to be follow they are all the Java files needs to place under source folder, all the XML, HTML, CSS files should be placed under WEB-INF, By using build path all the jar files needed to import into the library.
Develop XML program (web.xml) file having the servlet programs configuration. All servlet programs must be configured in the web.xml file. Make sure that servlet name should be same in both ans . URL pastern should me match with HTML form action name.
All jar files which are useful for the program are put in lib folder. Here servlet jar file is available in
C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\lib