Simply put, how do I retrieve the root network path in JSP?
If the page is located at http://mysite.com/Level1/index.html and the context path is /Level1 (where the forward slash is the root), then the root network path should be mysite.com. How do I retrieve this in JSP?
Thank you.
See
getServerName().So in JSP :
${pageContext.request.serverName}