How to get web application context path?
The context path always comes first in a request URI. The path starts with a "/" character but does not end with a "/" character. When I have a web application with the URL like
myapps is the context path.
For servlets in the default (root) context, this method returns "".