ADF应用如何进行注销
使用如下代码即可进行注销操作(不过值得注意的是,首先你要对应用进行认证保护设定,具体见附件)
public void logout(ActionEvent actionEvent) { FacesContext fctx = FacesContext.getCurrentInstance(); ExternalContext ectx = fctx.getExternalContext(); String url = ectx.getRequestContextPath() + "/adfAuthentication?logout=true&end_url=/faces/Home"; try { ectx.redirect(url); } catch (IOException e) { e.printStackTrace(); } fctx.responseComplete(); }