You can install servlet by following these instructions:
Servlet is installed by unzip the WAR file.
Installation will add beforementioned servlet information to WEB-INF/web.xml file.
For example, you can unzip ExampleServlet.war in your public_html folder with SSH by typing ‘unzip ExampleServlet.war’
After that the site is usable under the main domain.