Hi Natia,
My suggestions:
- put the setter's on Visit class.
- remove methods noteLogIn() and noteLogOut() , when you want to logout just
attrib null to ASO, inside any page.

and try this approach:

@ApplicationState
private Visit _visit;

public Object submitLoginForm() {
       Class nextPage;
       try {
           getMerchantCreator().login(username, password);

           User u = getMerchantCreator().getUser();
           _visit.setLoggedIn = true;
           _visit.setMyLoginId = u.getUserName();

           nextPage = ViewAllMerchants.class;

       } catch (UserNotFoundException e) {
           nextPage = Login.class;
           e.printStackTrace();
       }
       return nextPage;
   }


Marcus

Reply via email to