@Override
  public String performBaseAction(
      UserBean userBean,
      HttpServletRequest request,
      HttpServletResponse response,
      Map<String, Object> session) {
    DivisionTransactions divisionTransactions = new DivisionTransactions();
    List<Division> list = divisionTransactions.getAllDivisions(userBean.getRegId());
    request.setAttribute("classes", list);
    if (list != null) {
      int totalcount = list.size();
      int remainder = 0;
      if (totalcount > 0) {
        totalPages = totalcount / 10;
        remainder = totalcount % 10;
        if (remainder > 0) {
          totalPages++;
        }
      }
      if (currentPage == 0) {
        currentPage++;
      }

      if (currentPage > totalPages) {
        currentPage--;
      }
      startIndex = (currentPage - 1) * 10;
      endIndex = startIndex + 10;
      if (currentPage == totalPages && remainder > 0) {
        endIndex = startIndex + remainder;
      }
    }
    return SUCCESS;
  }
  @Override
  public String performBaseAction(
      UserBean userBean,
      HttpServletRequest request,
      HttpServletResponse response,
      Map<String, Object> session) {

    BatchTransactions batchTransactions = new BatchTransactions();
    int regID = userBean.getRegId();
    TeacherTransaction teacherTransaction = new TeacherTransaction();
    List classids = teacherTransaction.getTeachersClass(regID);
    RegisterTransaction registerTransaction = new RegisterTransaction();
    List<RegisterBean> classbeanes = registerTransaction.getTeachersclassNames(classids);
    request.setAttribute("Classes", classbeanes);
    // TODO Auto-generated method stub
    return SUCCESS;
  }