コード例 #1
0
  public String execute() {
    String ret = null;
    IFacade ifobj = new Facade();
    ActionContext cte = ActionContext.getContext();
    session = cte.getSession();
    System.out.println("session" + session.get("ua"));
    UserAccount userAccount = (UserAccount) session.get("ua");

    gen = ifobj.generateInternetBankingPin(userAccount);
    System.out.println("Action" + gen);
    if (gen != null) {
      ret = "success";
    } else {
      ret = "error";
    }

    return ret;
  }