JSF获得URL参数(@JAVA)

        FacesContext context = FacesContext.getCurrentInstance();
        HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
        String parameterValue = request.getParameter("id");
        System.out.println("#############"+parameterValue +"##############");

你可能感兴趣的:(java,String,JSF,url)