Running Your First Servlet Application

Once we have installed and configured Tomcat, we need to follow the below five steps to run our First Hello World Application.

  1. Create a directory under Tomcat for our application.
  2. Coding our servlet. We will be using javax.servlet package and the javax.servlet.http package in our source code.
  3. Create a deployment descriptor.
  4. Compile our source code.
  5. Run Tomcat and call the servlet from the web browser.

[Read more…]