I have a requested scoped managed bean, called AuthenticationBean
. I am developing a smal application with a login module, user activation and deactivation.
When I click on the activate or deactivate link, then the action is processed in AuthenticationBean
. I want thereafter redirect to some page depending on the activate or deactivate link.
I have tried the following in the bean constructor:
FacesContext.getCurrentInstance().getExternalContext().redirect("/user/activate.jsp");
But this code is not working. Please help me.