va/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name">getContextPath</span>()</div>
<div class="block">Returns the portion of the request URI that indicates the context of the request. The context path always comes first
 in a request URI. The path starts with a "/" character but does not end with a "/" character. For servlets in the
 default (root) context, this method returns "". The container 