For example, say you create a WAR file named
In web.xml, you specify the servlet-mapping url-pattern of
/worksheet. When you copy the war file to your Tomcat
webapps folder, then the URL will be:
http://your-domain.com/math/worksheetThe /worksheet part of the URL is relative to the root of the web application, which defaults to the name of the WAR file.
If you don't remember the WAR file name in the URL, you will get
mysterious 404 errors from Tomcat when trying to access your
The requested resource is not available.
Copyright © 2020 Andrew Oliver