public AccountAction() {
   super();
   // TODO Auto-generated constructor stub
   try {
     int total = userBO.getAll().size();
     int div = total / STATIC_ROW_MAX;
     if (div * STATIC_ROW_MAX == total) {
       totalPage = div;
     } else {
       totalPage = div + 1;
     }
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
  public String list() {
    try {
      list = userBO.getAll();
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    int index = 0, begin = 0;
    begin = (pageIndex - 1) * STATIC_ROW_MAX;
    if (pageIndex < totalPage) {
      index = pageIndex * STATIC_ROW_MAX;
    } else {
      index = list.size();
    }
    for (int i = begin; i < index; i++) {
      listUser.add(list.get(i));
    }
    return "list";
  }