"A new method getContextPath() was added to ServletContext. Formerly
context path information was only available in the request object,
following the logic that the same context object might be bound to
multiple paths so you'd only know the path at request time. However,
no known servers have utilized the multiple path binding option, and a
context being able to report its path is often convenient, so the
method got the green light. Should it ever happen that a context be
bound to multiple paths, it will return its "preferred" path."

http://www.javaworld.com/javaworld/jw-01-2006/jw-0102-servlet.html?page=6

I figured this one would be a really nice to have...

Martijn

Reply via email to