jakartaee / servlet

Jakarta Servlet
https://eclipse.org/ee4j/servlet
Other
258 stars 82 forks source link

ServletContext - getContext(String uripath) method confusing javadoc #522

Closed vsmid closed 1 year ago

vsmid commented 1 year ago

javadoc states: The given path must be begin with /, is interpreted relative to the server's document root and is matched against the context roots of other web applications hosted on this container.

I am not sure what the above sentence actually means and it looks a bit grammatically incorrect.

markt-asf commented 1 year ago

I don't see any grammar issues and the text looks OK to me - but then I know what the method is meant to be doing. Can you expand on which bits are unclear and we can see what we can do to improve the current text?

vsmid commented 1 year ago

This part looks fishy to me :) -> The given path must be begin with /, When we clarify this part maybe I will understand this sentence better.

markt-asf commented 1 year ago

Ah. Missed that. Just delete the "be".

vsmid commented 1 year ago

All good.