I have a managed bean (SessionScope, as shown below)
@ManagedBean(name="login") @SessionScoped public class Login implements Serializable { private String userSession; public Login(){ } }
In this managed folder, somewhere in the login function, I store the email as a session.
I have another managed bean called ChangePassword (ViewScoped). I need to access the email value that is stored in userSession.
The reason for this is that I need to know the current userSession (email) before I can execute the password change function. (You must change the password for this particular letter)
How can I do it? New to JSF, appreciate any help!
Slay
source share