How do I get web application context path?
Category: javax.servlet, viewed: 20539 time(s).
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 http://localhost:8080/myapps then myapps is the context path.
For servlets in the default (root) context, this method returns "".
Can't find what you are looking for? Join our FORUMS and ask some questions!
Download Hundreds of Complimentary Industry Resources
Get hundreds of popular Industry magazines, white papers, webinars, podcasts, and more;
all available at no cost to you. With more than 600 complimentary offers, you'll find
plenty of titles to suit your professional interests and needs.
Click Here and Sign up today!
