I want to know what “<%=pageContext.getRequest().getServerName()%.” returns in a JSP page.
Actually I want to do the following.
Currently I am in “https://eyedev.appspot.com/admin/login.do” page. And i have hyperlink with a name as a hyperlink name to a page where it states the privacy policy.”https://eyedev.appspot.com/privacy.html“.. The server name is dynamic. (it can be eyelive.appspot.com also”..
So I want to know how I can get the dynamic link to the privacy policy page.
I want to know what <%=pageContext.getRequest().getServerName()% . returns in a JSP page. Actually I
Share
You can use contextPath in this case, like this.
or