diff --git a/api/src/main/java/jakarta/servlet/ServletContext.java b/api/src/main/java/jakarta/servlet/ServletContext.java index d34c23fe0..f29e9766b 100644 --- a/api/src/main/java/jakarta/servlet/ServletContext.java +++ b/api/src/main/java/jakarta/servlet/ServletContext.java @@ -427,6 +427,11 @@ public interface ServletContext { /** * Gets the real path corresponding to the given virtual path. + * + *
+ * The path should begin with a / and is interpreted as relative to the current context root. If the path does + * not begin with a /, the container will behave as if the method was called with / appended to the + * beginning of the provided path. * *
* For example, if path is equal to /index.html, this method will return the absolute file path on the