6 Replies Latest reply on Jul 13, 2006 12:09 PM by Dave Whittaker

    How to redirect flow between two beans?

    Amir Shay Newbie

      The general question is how can I direct the flow of the program from one java action bean to another?

      Here is a scenario

      1. User log in using username and password
      2. An action bean checks the username/password (loginAction.java)
      3. Now I want to jump from loginAction.java to a new action bean (displayAction.java) and perform a database search there (displayAction.find)

      I have hard time performing step 3! If I redirect from loginAction.java to the DisplayAction xhtml associated with displayAction.java using the ?navigation-case? I cant call the ?find? because the EntityManager in displayAction.java is null thus the DisplayAction xhtml appears empty