users@servlet-spec.java.net

[servlet-spec users] [jsr369-experts] Re: Re: Re: Re: Re: Re: SERVLET_SPEC-137: Allow context root

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Thu, 03 Sep 2015 09:15:31 -0700

SD> I am with Greg here, I prefer default-context-path to
default-context-root.

SD> default-context-path is more in keeping with everything else in the
spec,
SD> IMHO the fact that some non spec extensions have called it something
different
SD> should not stop us adopting a spec consistent naming convention.

 From javadoc, the result of ServletContext#getContextPath must start
with "/" or
is an empty String.

As an example, the context-path is "/foo" and <context-root> is "foo".
Do we want "/foo" or "foo" as the value in web.xml?
I think we should be in the latter case.

Shing Wai Chan