public String add() { if (obAddInfo.getFirstname().equals("") || obAddInfo.getLastname().equals("") || obAddInfo.getGender().equals("") || obAddInfo.getAge().equals("") || obAddInfo.getAddress().equals("")) { addActionError("Please enter all valuees"); return ERROR; } else { System.out.println(getId1()); obDao.add(obAddInfo); System.out.println("Successdsifjsdf"); return SUCCESS; } }
public String delete() { System.out.println("Id : " + getId1()); obDao.delete(getId1()); System.out.println("Delete Success"); return SUCCESS; }
@Override public String execute() throws Exception { this.infoList = obDao.list1(); return SUCCESS; }