This content has been marked as final.
Show 2 replies
-
1. Re: how to get basePath in xhtml
marcioendo.marcioendo.gmail.com Feb 2, 2009 12:04 PM (in response to ramanujareddy)If I understood you correctly:
#{facesContext.externalContext.requestContextPath}
or
#{request.contextPath}
-
2. Re: how to get basePath in xhtml
ramanujareddy Feb 2, 2009 1:22 PM (in response to ramanujareddy)thank you Marcio Endo, i tried these then i get only context path i.e, /contextname but i want schema(http),serverName(localhost or some IP) and serverPort(like 8080) in xhtml file then i will append these all to contextpath.