获取访问action的页面信息
作者:互联网
// FacesContext facesContext = FacesContext.getCurrentInstance();
// ExternalContext externalContext = facesContext.getExternalContext();
// Map<String, Object> headerMap = externalContext.getRequestMap();
// String referer = (String) headerMap.get("javax.servlet.forward.request_uri");
String referer = Pages.getCurrentViewId();
标签:String,facesContext,FacesContext,访问,headerMap,referer,externalContext,action,页面 来源: https://www.cnblogs.com/LcxSummer/p/13130916.html