This content has been marked as final.
Show 3 replies
-
1. Re: How to get absolute path to web context?
sunay Apr 10, 2010 10:10 AM (in response to peterlen)I think you should want contaxt path
then you should do like this
HttpServletRequest request = FacesContext.getCurrentInstance().getExternalContext().getRequest();
now
request.getContextPath() you can get the contaxt path
Thanks
Sunay
-
2. Re: How to get absolute path to web context?
nbelaevski Apr 10, 2010 10:40 AM (in response to peterlen)Hi Peter,
Use this method: javax.faces.context.ExternalContext.getResourcePaths(String)
-
3. Re: How to get absolute path to web context?
peterlen Apr 12, 2010 9:32 AM (in response to nbelaevski)Excellent. Works like a champ now.
Thanks for the help - Peter