However, I still have confusion regarding the term "context". Why can't the method getContextPath() be called getWebAppPath()? From the API doc of the method: Returns the portion of the request URI that indicates the context of the request. What actually does "context of the request" mean? Do both "web application" and "context" mean same here?
SRV.11.1 Use of URL Paths
Upon receipt of a client request, the Web container determines the Web application to which to forward it. The Web application selected must have the the longest context path that matches the start of the request URL. The matched part of the URL is the context path when mapping to servlets.
What is the "Context" in ServletContext actually?