title: How to access property of one managed bean in another managed bean
body: <p>I have a managed bean (SessionScope as follow)</p>
  
  <pre><code>@ManagedBean(name="login")
  @SessionScoped
  public class Login implements Serializable {
  
     private String userSession;
     public Login(){
     }
  }
  </code></pre>
  
  <p>In this managedbean, somewhere in the login function, i store the email as a session.</p>
  
  <p>I have another managed bean called ChangePassword (ViewScoped). I need to access the value of the email which is stored in the userSession. </p>
  
  <p>The reason of doing so is that i need to find out the current userSession(email) before i can complete the change password function. (Need change password for that specific email)</p>
  
  <p>How do i do so? New to JSF, appreciate any help!</p>