如何在jsf中取当前系统路径啊

来源:互联网 发布:同盾科技 知乎 编辑:程序博客网 时间:2024/06/06 14:08

转自http://community.csdn.net/Expert/topic/5566/5566561.xml?temp=3.553408E-02

FacesContext.getCurrentInstance().getExternalContext().getRequestServletPath();
FacesContext.getCurrentInstance().getExternalContext().getRequestPathInfo();
FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();