My current url is: https://localhost:8080/MyApp/manager/dashboard Within the above url I want to fetch only https://localhost:8080/MyApp/ part. Is there any way to fetch this without hard coding anything? Continue reading...