2 Minutes To Code (β Version)

Java Servlets - 2 minute tutorial

How to deploy a servelt

Now that we have created the war file, its time to deploy it.

Deployment steps depend on the web server chosen. In case of Apache Tomcat, it is as simple as putting the war file in the $TOMCAT_HOME/webapps folder and starting the tomcat.

You will notice that when tomcat is started, this war file is blasted in the webapps folder in a folder of same name as shown in the images below.