Simply put, a Servlet is a class that handles requests, processes them and reply back with a response. For example, we can use a Servlet to collect input from a user through an HTML form, query records from a database, and create web pages dynamically.
In this tutorial you will learn to create JEE servlet project in eclipse and running the servlet in tomcat server. Before creating project in eclipse, make sure you are in java perspective. When eclipse is launched, by default it opens “Java EE” perspective. Change this to “Java” perspective.