This content has been marked as final.
Show 3 replies
-
1. Re: How to get the real path in SEAM?
nickarls Jun 11, 2008 9:10 AM (in response to kevinzhenyuhu)You could always cast
FacesContext.getCurrentInstance().getExternalContext()
to a ServletContext and move on from there. There might also be some seam util class that can do this shorter.
-
2. Re: How to get the real path in SEAM?
kevinzhenyuhu Jun 11, 2008 9:57 AM (in response to kevinzhenyuhu)Thanks for the reply. I tried it, but I got the ClassCastException exception. Do you have any idea?
-
3. Re: How to get the real path in SEAM?
kevinzhenyuhu Jun 11, 2008 10:05 AM (in response to kevinzhenyuhu)I resloved that, it should be
FacesContext.getCurrentInstance().getExternalContex().getContex()
T
hanks a lot for your suggestion!