In an ADF task Flow use URL view component
at URL* specify the path of the page
fog e.g /context-root/ServerError.html
at URL* specify the path of the page
fog e.g /context-root/ServerError.html
<af:commandButton text=" #{securityContext.authenticated ? "Logout" : "Login"}" id="cb7"
actionListener="#{backingBeanScope.backingBean.logout}"/>
public void logout(ActionEvent actionEvent) {
ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
HttpServletRequest request = (HttpServletRequest)ectx.getRequest();
String url = request.getContextPath() +
"/adfAuthentication?logout=true&end_url=/faces/start-page-of-the-application";
try
{
ectx.redirect(url);
}
catch (Exception ex)
{
System.out.println("Exception!! Logging out"+ex);
// Handle the exception
}
}