2 Minutes To Code (β Version)

Java Servlets - 2 minute tutorial

How to run servlets

If you have created the servlet shown as shown in the first servlet page, and used the deployment descriptor shown in the create war file page, and deployed the myApp.war as shown in the previous page with the tomcat's start-up port set to 8080, the its time to test your servlet.

Open your web browser and hit the url :

http://localhost:8080/myApp/firstPage.do

If you see the webpage shown below, congratulations, you have successfully created your first web app.